CI: Releases add missing release instructions
This commit is contained in:
parent
20fd3f57a8
commit
a18926789b
1 changed files with 6 additions and 1 deletions
|
@ -28,6 +28,11 @@ release-branch:
|
||||||
- apk add --no-cache git
|
- apk add --no-cache git
|
||||||
- export INFRA_RELEASE_VERSION="$(date +%y.%m)"
|
- export INFRA_RELEASE_VERSION="$(date +%y.%m)"
|
||||||
- export INFRA_RELEASE_NAME="Infrastructure $INFRA_RELEASE_VERSION"
|
- export INFRA_RELEASE_NAME="Infrastructure $INFRA_RELEASE_VERSION"
|
||||||
- export INFRA_RELEASE_DESCRIPTION="$(printf '## Changelog\n\n' && git log --no-merges --pretty="- %s (%h)" "HEAD...$(git tag | sort -V -r | head -1)" && printf '\n\n## External Contributors\n\n' && git log --pretty="- %an%n- %cn" HEAD...$(git tag | sort -V -r | head -1) | sort | uniq | grep -v 'Saibotk' && printf "\n\n---\n*This is an automated release. See [#${CI_JOB_ID}]($CI_JOB_URL) for details.*")"
|
- export INFRA_RELEASE_DESCRIPTION="$(printf '## Changelog\n\n' && git log --no-merges --pretty="- %s (%h)" "HEAD...$(git tag | sort -V -r | head -1)" && printf '\n\n## External Contributors\n\n' && git log --pretty="- %an%n- %cn" HEAD...$(git tag | sort -V -r | head -1) | sort | uniq | grep -v 'saibotk' && printf "\n\n---\n*This is an automated release. See [#${CI_JOB_ID}]($CI_JOB_URL) for details.*")"
|
||||||
|
release:
|
||||||
|
name: '$INFRA_RELEASE_NAME'
|
||||||
|
tag_name: 'v${INFRA_RELEASE_VERSION}'
|
||||||
|
ref: '$CI_COMMIT_SHA'
|
||||||
|
description: '$INFRA_RELEASE_DESCRIPTION'
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $INFRA_RELEASE_NOW == "true" && $CI_COMMIT_TAG == null'
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $INFRA_RELEASE_NOW == "true" && $CI_COMMIT_TAG == null'
|
||||||
|
|
Loading…
Add table
Reference in a new issue