From 145a6acad5e2f87cd82e96d6209e4e3d2d0cca05 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Tue, 25 Jun 2024 14:48:42 +0200 Subject: [PATCH] ci: :construction_worker: run publish Docker image pipeline on tag - Allow failure of bump pipeline as changelog won't be generated if no version bump is possible --- .drone.yml | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 74d11f1..1340efd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: kubernetes -name: tag, create release and publish Docker image +name: tag and create release steps: - name: bump tag @@ -20,16 +20,7 @@ steps: from_secret: git_username GIT_PASSWORD: from_secret: git_password - - name: publish Docker image - image: plugins/docker - settings: - registry: gitea.dikurium.ch - repo: gitea.dikurium.ch/innopeak/drone-gitea-release - auto_tag: true - username: - from_secret: docker_username - password: - from_secret: docker_password + failure: ignore - image: gitea.dikurium.ch/innopeak/drone-gitea-release name: create release settings: @@ -41,9 +32,33 @@ steps: notes_file: CZ_CURRENT_CHANGELOG.md owner: innopeak repo: drone-gitea-release + depends_on: + - bump tag trigger: branch: - main event: - push +--- +kind: pipeline +type: kubernetes +name: publish Docker image + +steps: + - name: publish Docker image + image: plugins/docker + settings: + registry: gitea.dikurium.ch + repo: gitea.dikurium.ch/innopeak/drone-gitea-release + auto_tag: true + username: + from_secret: docker_username + password: + from_secret: docker_password + +trigger: + branch: + - main + event: + - tag