From 354cc39cf6087e13b5f4c2fc956f24a499e4f308 Mon Sep 17 00:00:00 2001 From: nyyu Date: Mon, 9 Sep 2024 21:38:48 +0200 Subject: [PATCH] chore(ci): build on push branch --- .woodpecker.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ad68337..f693034 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,5 +1,19 @@ steps: - docker: + build: + image: woodpeckerci/plugin-kaniko + pull: true + settings: + dry-run: true + repo: ${CI_REPO_OWNER}/pyload-ng + registry: ${DOCKER_REGISTRY} + mirror: https://${DOCKER_REGISTRY} + tags: latest + build_args: VERSION=dev + when: + branch: + exclude: ${CI_REPO_DEFAULT_BRANCH} + event: [push, cron, tag, manual] + push: image: woodpeckerci/plugin-kaniko pull: true settings: @@ -13,5 +27,5 @@ steps: tags: latest build_args: VERSION=dev when: - branch: main + branch: ${CI_REPO_DEFAULT_BRANCH} event: [push, cron, tag, manual]