From bda6ff63e487eb1cbd87920a0df09619ac85fffb Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Sun, 8 Dec 2024 16:53:20 +0100 Subject: [PATCH] feat(ci): add woodpecker build for azure --- .woodpecker/build.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .woodpecker/build.yaml diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..055a0f1 --- /dev/null +++ b/.woodpecker/build.yaml @@ -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