From 90e2d626f19048df268eb6f318a4c7cb4c9829cb Mon Sep 17 00:00:00 2001 From: Matthias Hemmerich Date: Wed, 30 Nov 2022 23:27:49 +0100 Subject: [PATCH] update pipeline --- .drone.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4a74dbe..015ab17 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,27 +13,29 @@ steps: repo: codeberg.org/angestoepselt/homepage build_args: - SITE=angestoepselt - tags: latest - when: + tags: ${DRONE_BRANCH} + trigger: branch: - - main - - captcha + - main + - captcha - name: deploy stage build image: plugins/webhook settings: urls: from_secret: portainer_stage_url - when: - branch: [captcha] + trigger: + branch: + - captcha - name: deploy live build image: plugins/webhook settings: urls: from_secret: portainer_main_url - when: - branch: [main] + trigger: + branch: + - main - name: send notification image: plugins/webhook @@ -49,4 +51,4 @@ steps: "owner": "{{ repo.owner }}", "repo": "{{ repo.name }}", "status": "{{ build.status }}", - } \ No newline at end of file + }