chore: add cache for woodpecker
This commit is contained in:
parent
eff178068c
commit
f659cef792
1 changed files with 5 additions and 1 deletions
|
@ -15,5 +15,9 @@ steps:
|
||||||
privileged: true
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
- echo "$PACKAGE_TOKEN" | buildah login forge.babariviere.com --username babariviere --password-stdin
|
- echo "$PACKAGE_TOKEN" | buildah login forge.babariviere.com --username babariviere --password-stdin
|
||||||
- buildah build --label org.opencontainers.image.source=https://$IMAGE_NAME -t $IMAGE_NAME:latest -t $IMAGE_NAME:$(date -u +%Y%m%d) .
|
- buildah build \
|
||||||
|
--cache-from docker://$IMAGE_NAME/cache \
|
||||||
|
--cache-to docker://$IMAGE_NAME/cache \
|
||||||
|
--label org.opencontainers.image.source=https://$IMAGE_NAME \
|
||||||
|
-t $IMAGE_NAME:latest -t $IMAGE_NAME:$(date -u +%Y%m%d) .
|
||||||
- buildah push --all $IMAGE_NAME docker://$IMAGE_NAME
|
- buildah push --all $IMAGE_NAME docker://$IMAGE_NAME
|
||||||
|
|
Loading…
Reference in a new issue