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:
parent
2c8cdd7fcc
commit
145a6acad5
37
.drone.yml
37
.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
|
||||
|
Loading…
Reference in New Issue
Block a user