azure/.woodpecker/build.yaml
Bastien Riviere c03a1b5b13
Some checks failed
ci/woodpecker/push/build Pipeline failed
feat(ci): add woodpecker build for azure
2024-12-08 16:53:20 +01:00

17 lines
608 B
YAML

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
secrets: [package_token]
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 push --all $IMAGE_NAME docker://$IMAGE_NAME