diff --git a/.woodpecker/build-container.yml b/.woodpecker/build-container.yml index e965811..8a9c023 100644 --- a/.woodpecker/build-container.yml +++ b/.woodpecker/build-container.yml @@ -12,6 +12,8 @@ steps: containerfile: Containerfile output: type=oci,dest=oci/${CI_REPO_NAME},tar=false repo: thegeeklab/${CI_REPO_NAME} + cache_to: + - 'type=local\\,src=oci/cache/${CI_REPO_NAME}' - name: security-scan image: ghcr.io/aquasecurity/trivy @@ -38,7 +40,7 @@ steps: username: from_secret: docker_username cache_from: - - 'type=local\\,src=oci/${CI_REPO_NAME}' + - 'type=local\\,src=oci/cache/${CI_REPO_NAME}' when: - event: [tag] - event: [push, manual] diff --git a/Containerfile b/Containerfile index af52137..2fc3f47 100644 --- a/Containerfile +++ b/Containerfile @@ -38,7 +38,7 @@ esac RUN rustup set profile minimal && \ 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 && \ target/$(cat rust_target)/release/vaultwarden --help && \