ci: add release notes for goreleaser command in .gitlab-ci.yml

This commit is contained in:
2024-10-22 19:44:02 +02:00
parent bf2248c53c
commit 75307f53ca
2 changed files with 8 additions and 5 deletions
+2
View File
@@ -5,3 +5,5 @@ coverage.html
/exported
/release
/schemactl
CHANGES.md
VERSION
+6 -5
View File
@@ -1,5 +1,7 @@
include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- project: unboundsoftware/ci-templates
file: Release.gitlab-ci.yml
stages:
- build
@@ -8,6 +10,7 @@ stages:
- release
variables:
UNBOUND_RELEASE_TAG_ONLY: true
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
@@ -80,22 +83,20 @@ check_release:
goreleaser check
goreleaser release --snapshot --clean
release:
stage: release
needs:
- unbound_release_prepare_release
image:
name: goreleaser/goreleaser:v2.3.2
entrypoint: [ '' ]
variables:
# Disable shallow cloning so that goreleaser can diff between tags to
# generate a changelog.
GIT_DEPTH: 0
GITLAB_TOKEN: $GITLAB_CI_TOKEN
# Only run this release job for tags, not every commit (for example).
rules:
- if: $CI_COMMIT_TAG
script: |
goreleaser release --clean
goreleaser release --clean --release-notes=CHANGES.md