azure/.woodpecker/build.yaml

25 lines
793 B
YAML
Raw Normal View History

when:
- event: push
branch: main
- event: cron
cron: build_image
steps:
- name: build
image: quay.io/containers/buildah:v1.38.0
environment:
FEDORA_MAJOR_VERSION: latest
IMAGE_NAME: forge.babariviere.com/babariviere/azure
PACKAGE_TOKEN:
from_secret: package_token
privileged: true
commands:
- echo "$PACKAGE_TOKEN" | buildah login forge.babariviere.com --username babariviere --password-stdin
2024-12-11 08:20:50 +00:00
- buildah build
--layers
2024-12-11 07:25:35 +00:00
--cache-from docker://$IMAGE_NAME:cache
--cache-to docker://$IMAGE_NAME:cache
2024-12-10 22:06:47 +00:00
--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