From 7972b5a12be91ac2efa3a72862485ced3e2507c6 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Fri, 29 Dec 2023 11:50:38 +0100 Subject: [PATCH] ci: Add latest tag for tags --- .woodpecker.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1417678..a4b056b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,7 +4,21 @@ steps: settings: repo: git.merp.digital/${CI_REPO_OWNER}/woodpecker-scp registry: git.merp.digital - tags: develop + tags: ${CI_COMMIT_BRANCH} username: ${CI_REPO_OWNER} password: - from_secret: cb_token \ No newline at end of file + from_secret: cb_token + when: + - event: [push] + + publish: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: git.merp.digital/${CI_REPO_OWNER}/woodpecker-scp + registry: git.merp.digital + tags: [latest, ${CI_COMMIT_TAG}] + username: ${CI_REPO_OWNER} + password: + from_secret: cb_token + when: + - event: [tag] \ No newline at end of file