build(woodpecker): split updating docker builder into seperate job

Closes kemitix/git-next#7
This commit is contained in:
Paul Campbell 2024-04-09 20:59:42 +01:00
parent 70e0f94042
commit 0b5c91fedb
2 changed files with 15 additions and 14 deletions

View file

@ -1,19 +1,5 @@
steps: steps:
update-builder-image:
when:
- event: cron
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
settings:
username: kemitix
repo: git.kemitix.net/kemitix/git-next-builder
auto_tag: true
dockerfile: Dockerfile.builder
dry-run: false # push to remote repo
registry: git.kemitix.net
password:
from_secret: woodpecker-docker-push
build: build:
when: when:
- event: push - event: push

15
.woodpecker/builder.yml Normal file
View file

@ -0,0 +1,15 @@
steps:
update-builder-image:
when:
- event: cron
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
settings:
username: kemitix
repo: git.kemitix.net/kemitix/git-next-builder
auto_tag: true
dockerfile: Dockerfile.builder
dry-run: false # push to remote repo
registry: git.kemitix.net
password:
from_secret: woodpecker-docker-push