Skip to content

Commit

Permalink
chore: add cache for woodpecker
Browse files Browse the repository at this point in the history
  • Loading branch information
babariviere committed Dec 10, 2024
1 parent eff1780 commit 77d0a22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .woodpecker/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@ steps:
privileged: true
commands:
- 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

0 comments on commit 77d0a22

Please sign in to comment.