Compare commits

...

4 Commits
5.47 ... 0.00

Author SHA1 Message Date
icex2
a81997dce8 wip 2021-12-28 23:15:46 +01:00
icex2
bfe68f8708 wip 2021-12-28 23:06:13 +01:00
icex2
9c1d83d050 wip 2021-12-28 22:52:57 +01:00
icex2
e4ee94ae2a Update .gitlab-ci.yml 2021-12-28 21:36:12 +00:00
3 changed files with 18 additions and 17 deletions

View File

@@ -41,6 +41,10 @@ build:
- apk update && apk add make > /dev/null - apk update && apk add make > /dev/null
script: script:
- make build-docker - make build-docker
artifacts:
paths:
- build
expire_in: 1 week
upload-package-registry: upload-package-registry:
stage: upload stage: upload
@@ -58,7 +62,7 @@ upload-package-registry:
else else
version="${CI_COMMIT_SHORT_SHA}" version="${CI_COMMIT_SHORT_SHA}"
fi fi
- |
curl \ curl \
--silent \ --silent \
--fail \ --fail \
@@ -96,11 +100,9 @@ release-gitlab:
refs: refs:
- tags - tags
script: script:
- version="$CI_COMMIT_TAG"
- release_message="$(scripts/ci/create-release-message.sh "${version}" < CHANGELOG.md)"
- | - |
version="$CI_COMMIT_TAG"
release_message="$(scripts/ci/create-release-message.sh "${version}" < CHANGELOG.md)"
release-cli create \ release-cli create \
--name "bemanitools ${version}" \ --name "bemanitools ${version}" \
--description="${release_message}" \ --description="${release_message}" \
@@ -114,18 +116,13 @@ release-pigstall:
refs: refs:
- tags - tags
script: script:
- version="${CI_COMMIT_TAG}"
- changelog_excerpt="$(scripts/ci/create-release-message.sh "${version}" < CHANGELOG.md)"
- release_message="$(printf "bemanitools ${version} released\n${CI_TOOLS_URL}/bemanitools-v${version}.zip\n${changelog_excerpt}")"
- session="$(echo "$CI_PIGSTALL_SESSION_BASE64" | base64 -d)"
- data_prefix="$(echo "$CI_PIGSTALL_DATA_PREFIX_BASE64" | base64 -d)"
- link="$(echo "$CI_PIGSTALL_LINK_BASE64" | base64 -d)"
- | - |
version="${CI_COMMIT_TAG}"
changelog_excerpt="$(scripts/ci/create-release-message.sh "${version}" < CHANGELOG.md)"
release_message="$(printf \
"bemanitools ${version} released\n${CI_TOOLS_URL}/bemanitools-v${version}.zip\n${changelog_excerpt}")"
session="$(echo "$CI_PIGSTALL_SESSION_BASE64" | base64 -d)"
data_prefix="$(echo "$CI_PIGSTALL_DATA_PREFIX_BASE64" | base64 -d)"
link="$(echo "$CI_PIGSTALL_LINK_BASE64" | base64 -d)"
curl \ curl \
--silent \ --silent \
--fail \ --fail \

View File

@@ -2,6 +2,10 @@
Note for CI/CD: Ensure the version formatting in the sections is kept identical to the versions Note for CI/CD: Ensure the version formatting in the sections is kept identical to the versions
given in tags. The pipeline will pick this up and cuts out the relevant section for release notes. given in tags. The pipeline will pick this up and cuts out the relevant section for release notes.
## 0.00
testing release pipeline
## 5.37 ## 5.37
## 5.36 ## 5.36

View File

@@ -23,6 +23,6 @@ if [ "$changelog_excerpt" ]; then
printf "%s" "$changelog_excerpt" printf "%s" "$changelog_excerpt"
exit 0 exit 0
else else
echo "Could not find version in changelog: $VERSION" >&2 echo "Could not find version in changelog: $VERSION"
exit 1 exit 1
fi fi