test image build caching
This commit is contained in:
parent
bc05f493b5
commit
75758c9390
@ -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]
|
||||||
|
@ -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 && \
|
||||||
|
Loading…
Reference in New Issue
Block a user