ci: 👷 run publish Docker image pipeline on tag

- Allow failure of bump pipeline as changelog won't be generated if no version bump is possible
This commit is contained in:
RaviAnand Mohabir 2024-06-25 14:48:42 +02:00
parent 2c8cdd7fcc
commit 145a6acad5

View File

@ -1,6 +1,6 @@
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: tag, create release and publish Docker image name: tag and create release
steps: steps:
- name: bump tag - name: bump tag
@ -20,16 +20,7 @@ steps:
from_secret: git_username from_secret: git_username
GIT_PASSWORD: GIT_PASSWORD:
from_secret: git_password from_secret: git_password
- name: publish Docker image failure: ignore
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
- image: gitea.dikurium.ch/innopeak/drone-gitea-release - image: gitea.dikurium.ch/innopeak/drone-gitea-release
name: create release name: create release
settings: settings:
@ -41,9 +32,33 @@ steps:
notes_file: CZ_CURRENT_CHANGELOG.md notes_file: CZ_CURRENT_CHANGELOG.md
owner: innopeak owner: innopeak
repo: drone-gitea-release repo: drone-gitea-release
depends_on:
- bump tag
trigger: trigger:
branch: branch:
- main - main
event: event:
- push - 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