ci: 👷 add drone bump and release pipeline
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
parent
a865a73835
commit
631ee5903f
39
.drone.yml
Normal file
39
.drone.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
- cz bump --yes
|
||||||
|
- git push --follow-tags
|
||||||
|
- cz changelog $(cz version -p) > CZ_CURRENT_CHANGELOG.md
|
||||||
|
environment:
|
||||||
|
GIT_PASSWORD:
|
||||||
|
from_secret: git_token
|
||||||
|
GIT_USERNAME:
|
||||||
|
from_secret: git_user
|
||||||
|
image: python:3.12
|
||||||
|
name: bump version and generate changelog
|
||||||
|
- image: gitea.dikurium.ch/innopeak/drone-gitea-release
|
||||||
|
name: create release
|
||||||
|
settings:
|
||||||
|
gitea_password:
|
||||||
|
from_secret: git_token
|
||||||
|
gitea_url: gitea.dikurium.ch
|
||||||
|
gitea_username:
|
||||||
|
from_secret: git_user
|
||||||
|
notes_file: CZ_CURRENT_CHANGELOG.md
|
||||||
|
owner: innopeak
|
||||||
|
repo: gqlgen-contrib
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
Loading…
Reference in New Issue
Block a user