2023-07-25 20:32:49 +00:00
|
|
|
---
|
|
|
|
when:
|
2023-07-26 18:43:03 +00:00
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
2023-07-25 21:43:19 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-07-25 20:32:49 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
checksum:
|
2023-12-07 10:38:42 +00:00
|
|
|
image: quay.io/thegeeklab/alpine-tools
|
2023-07-25 20:32:49 +00:00
|
|
|
commands:
|
|
|
|
- sha256sum retry > sha256sum.txt
|
|
|
|
|
2023-12-07 10:38:42 +00:00
|
|
|
changelog:
|
|
|
|
image: quay.io/thegeeklab/git-sv
|
2023-07-25 20:32:49 +00:00
|
|
|
commands:
|
2023-12-07 10:38:42 +00:00
|
|
|
- git sv current-version
|
|
|
|
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
|
|
|
|
- cat CHANGELOG.md
|
2023-07-25 20:32:49 +00:00
|
|
|
|
|
|
|
publish-github:
|
|
|
|
image: docker.io/plugins/github-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
files:
|
|
|
|
- retry
|
|
|
|
- sha256sum.txt
|
|
|
|
note: CHANGELOG.md
|
|
|
|
overwrite: true
|
|
|
|
title: ${CI_COMMIT_TAG}
|
|
|
|
when:
|
2023-12-07 10:38:42 +00:00
|
|
|
- event: [tag]
|
2023-07-25 20:32:49 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test
|