From ff8716f75a5ead42d467515b57da45912d6bd91f Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 14 Jan 2023 02:11:35 +0100 Subject: [PATCH] Only execute build-only step when not building+publishing as well --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 90ee476..3108d5b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,20 +5,22 @@ type: docker name: default steps: - - name: build + - name: build only image: plugins/docker settings: dry_run: yes - purge: no repo: git.luj0ga.de/luca/matrix-prometheus + when: + event: + exclude: + - tag - - name: publish + - name: build and publish image: plugins/docker settings: auto_tag: yes password: from_secret: access_token - purge: no registry: git.luj0ga.de repo: git.luj0ga.de/luca/matrix-prometheus username: _