2024-06-25 09:32:01 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: bump version and create release
|
|
|
|
steps:
|
|
|
|
- commands:
|
|
|
|
- pip install -U Commitizen
|
|
|
|
- git config --global user.email "drone@dikurium.ch"
|
|
|
|
- git config --global user.name "Drone"
|
|
|
|
- git config --global url."https://$GIT_USERNAME:$GIT_PASSWORD@gitea.dikurium.ch/".insteadOf
|
|
|
|
"https://gitea.dikurium.ch/"
|
|
|
|
- git config --global --add --bool push.autoSetupRemote true
|
|
|
|
- git fetch --tags
|
2024-06-26 14:02:41 +00:00
|
|
|
- cz bump --annotated-tag --yes || (echo "An error occured while bumping the tag." && exit 0)
|
2024-06-25 09:32:01 +00:00
|
|
|
- git push --follow-tags
|
2024-06-27 14:31:02 +00:00
|
|
|
- cz changelog $(cz version -p) --file-name CZ_CURRENT_CHANGELOG.md || (echo "An error occured while generating the changelog." && exit 0)
|
2024-06-25 09:32:01 +00:00
|
|
|
environment:
|
|
|
|
GIT_PASSWORD:
|
|
|
|
from_secret: git_token
|
|
|
|
GIT_USERNAME:
|
|
|
|
from_secret: git_user
|
|
|
|
image: python:3.12
|
|
|
|
name: bump version and generate changelog
|
2024-06-27 14:23:12 +00:00
|
|
|
- image: gitea.dikurium.ch/innopeak/drone-gitea-release:0.6
|
2024-06-25 09:32:01 +00:00
|
|
|
name: create release
|
|
|
|
settings:
|
|
|
|
gitea_password:
|
|
|
|
from_secret: git_token
|
2024-06-26 14:03:57 +00:00
|
|
|
gitea_url: https://gitea.dikurium.ch
|
2024-06-25 09:32:01 +00:00
|
|
|
gitea_username:
|
|
|
|
from_secret: git_user
|
|
|
|
notes_file: CZ_CURRENT_CHANGELOG.md
|
|
|
|
owner: innopeak
|
|
|
|
repo: gqlgen-contrib
|
2024-06-25 14:03:34 +00:00
|
|
|
skip_if_no_notes_file: true
|
2024-06-27 14:23:12 +00:00
|
|
|
use_latest_git_tag: true
|
2024-06-26 14:10:35 +00:00
|
|
|
fetch_git_tags: true
|
2024-06-25 14:03:34 +00:00
|
|
|
|
2024-06-25 09:32:01 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|