feat(ci): add woodpecker build for azure
Some checks failed
ci/woodpecker/push/build Pipeline failed
Some checks failed
ci/woodpecker/push/build Pipeline failed
This commit is contained in:
parent
9c9f1b73c1
commit
fef82c4b60
1 changed files with 21 additions and 0 deletions
21
.woodpecker/build.yaml
Normal file
21
.woodpecker/build.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
backend_options:
|
||||
kubernetes:
|
||||
securityContext:
|
||||
privileged: true
|
Loading…
Reference in a new issue