RaviAnand Mohabir
45a7f6beed
Some checks reported errors
continuous-integration/drone/push Build was killed
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: tag, create release and publish Docker image
|
|
|
|
steps:
|
|
- name: bump tag
|
|
image: python:3.12
|
|
commands:
|
|
- git config --global user.email "drone@dikurium.ch"
|
|
- git config --global user.name "Drone"
|
|
- git config --global url."https://$GIT_USERNAME:$GIT_TOKEN@gitea.dikurium.ch/".insteadOf "https://gitea.dikurium.ch/"
|
|
- git config --global --add --bool push.autoSetupRemote true
|
|
- git fetch --tags
|
|
- pip install -U Commitizen
|
|
- cz bump
|
|
- 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
|
|
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:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|