2024-06-22 14:28:06 +00:00
|
|
|
kind: pipeline
|
2024-06-25 10:25:11 +00:00
|
|
|
type: kubernetes
|
2024-06-25 13:09:17 +00:00
|
|
|
name: tag, build Docker image and create release
|
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 12:26:09 +00:00
|
|
|
- cz bump --annotated-tag --yes
|
2024-06-23 15:01:32 +00:00
|
|
|
- git push --follow-tags
|
2024-06-27 14:30:58 +00:00
|
|
|
- cz changelog $(cz version -p) --file-name CZ_CURRENT_CHANGELOG.md || echo "An error occured while generating the changelog."
|
2024-06-23 15:01:32 +00:00
|
|
|
environment:
|
|
|
|
GIT_USERNAME:
|
|
|
|
from_secret: git_username
|
|
|
|
GIT_PASSWORD:
|
|
|
|
from_secret: git_password
|
2024-06-25 13:09:17 +00:00
|
|
|
- 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
|
2024-06-25 10:31:30 +00:00
|
|
|
- image: gitea.dikurium.ch/innopeak/drone-gitea-release
|
|
|
|
name: create release
|
|
|
|
settings:
|
|
|
|
gitea_password:
|
|
|
|
from_secret: git_password
|
2024-06-26 14:04:23 +00:00
|
|
|
gitea_url: https://gitea.dikurium.ch
|
2024-06-25 10:31:30 +00:00
|
|
|
gitea_username:
|
|
|
|
from_secret: git_username
|
|
|
|
notes_file: CZ_CURRENT_CHANGELOG.md
|
|
|
|
owner: innopeak
|
|
|
|
repo: drone-gitea-release
|
2024-06-25 13:30:04 +00:00
|
|
|
skip_if_no_notes_file: true
|
2024-06-25 14:08:39 +00:00
|
|
|
use_latest_git_tag: true
|
2024-06-22 14:28:06 +00:00
|
|
|
|
|
|
|
trigger:
|
2024-06-23 15:01:32 +00:00
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
2024-06-25 12:48:42 +00:00
|
|
|
---
|
|
|
|
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:
|
|
|
|
event:
|
|
|
|
- tag
|