test image build caching
Some checks failed
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-02-12 15:17:41 +01:00
parent bc05f493b5
commit 75758c9390
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,8 @@ steps:
containerfile: Containerfile containerfile: Containerfile
output: type=oci,dest=oci/${CI_REPO_NAME},tar=false output: type=oci,dest=oci/${CI_REPO_NAME},tar=false
repo: thegeeklab/${CI_REPO_NAME} repo: thegeeklab/${CI_REPO_NAME}
cache_to:
- 'type=local\\,src=oci/cache/${CI_REPO_NAME}'
- name: security-scan - name: security-scan
image: ghcr.io/aquasecurity/trivy image: ghcr.io/aquasecurity/trivy
@ -38,7 +40,7 @@ steps:
username: username:
from_secret: docker_username from_secret: docker_username
cache_from: cache_from:
- 'type=local\\,src=oci/${CI_REPO_NAME}' - 'type=local\\,src=oci/cache/${CI_REPO_NAME}'
when: when:
- event: [tag] - event: [tag]
- event: [push, manual] - event: [push, manual]

View File

@ -38,7 +38,7 @@ esac
RUN rustup set profile minimal && \ RUN rustup set profile minimal && \
rustup target add $(cat rust_target) && \ rustup target add $(cat rust_target) && \
VW_VERSION="${VAULTWARDEN_VERSION##v}" cargo build -j 8 --features "$DB" --target $(cat rust_target) --release VW_VERSION="${VAULTWARDEN_VERSION##v}" cargo build -j 4 --features "$DB" --target $(cat rust_target) --release
RUN ldd target/$(cat rust_target)/release/vaultwarden && \ RUN ldd target/$(cat rust_target)/release/vaultwarden && \
target/$(cat rust_target)/release/vaultwarden --help && \ target/$(cat rust_target)/release/vaultwarden --help && \