feat(ci): add woodpecker build for azure
Some checks failed
ci/woodpecker/cron/build Pipeline failed

This commit is contained in:
Bastien Riviere 2024-12-08 16:53:20 +01:00
parent 9c9f1b73c1
commit bda6ff63e4
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

19
.woodpecker/build.yaml Normal file
View file

@ -0,0 +1,19 @@
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
- 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