2024-06-22 14:28:06 +00:00
|
|
|
kind: pipeline
|
2024-06-25 10:25:11 +00:00
|
|
|
type: kubernetes
|
2024-06-23 15:01:32 +00:00
|
|
|
name: tag, create release and publish Docker image
|
2024-06-22 14:28:06 +00:00
|
|
|
|
|
|
|
steps:
|
2024-06-23 15:01:32 +00:00
|
|
|
- name: bump tag
|
|
|
|
image: python:3.12
|
|
|
|
commands:
|
|
|
|
- git config --global user.email "drone@dikurium.ch"
|
|
|
|
- git config --global user.name "Drone"
|
2024-06-25 10:28:08 +00:00
|
|
|
- git config --global url."https://$GIT_USERNAME:$GIT_PASSWORD@gitea.dikurium.ch/".insteadOf "https://gitea.dikurium.ch/"
|
2024-06-23 15:01:32 +00:00
|
|
|
- git config --global --add --bool push.autoSetupRemote true
|
|
|
|
- git fetch --tags
|
|
|
|
- pip install -U Commitizen
|
2024-06-25 10:26:34 +00:00
|
|
|
- cz bump --yes
|
2024-06-23 15:01:32 +00:00
|
|
|
- git push --follow-tags
|
|
|
|
- cz changelog $(cz version -p) > CZ_CURRENT_CHANGELOG.md
|
|
|
|
environment:
|
|
|
|
GIT_USERNAME:
|
|
|
|
from_secret: git_username
|
|
|
|
GIT_PASSWORD:
|
|
|
|
from_secret: git_password
|
|
|
|
- name: publish Docker image
|
2024-06-22 14:28:06 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: gitea.dikurium.ch/InnoPeak/drone-gitea-release
|
|
|
|
auto_tag: true
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
trigger:
|
2024-06-23 15:01:32 +00:00
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|