improve pipeline even more

This commit is contained in:
Johannes Loher 2021-09-14 16:57:53 +02:00
parent 0e26d4fde6
commit 0c6fd85b99

View file

@ -97,9 +97,9 @@ publish-artifacts:
git tag -f ${RELEASE_VERSION}
git push origin ci-processing:${CI_BUILD_REF_NAME} -o ci.skip
git push origin ${RELEASE_VERSION}
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
when: manual
only:
- $CI_DEFAULT_BRANCH
when: manual
release-patch:
variables:
@ -116,22 +116,6 @@ release-major:
RELEASE_TYPE: major
<<: *release-template
bump-latest-tag:
stage: release
image: alpine:latest
before_script:
- apk update
- apk add git
- REPOSITORY_URL=$(echo "${CI_REPOSITORY_URL}" | sed -e "s|gitlab-ci-token:.*@|${RELEASE_TOKEN}:${RELEASE_TOKEN_SECRET}@|g")
- git remote set-url origin $REPOSITORY_URL
- git config user.name $GITLAB_USER_LOGIN
- git config user.email $GITLAB_USER_EMAIL
script: |
git tag -f latest -m "This tag is only being kept for backwards compatibility. To install the DS4 system, please use the following manifest URL instead: https://git.f3l.de/api/v4/projects/dungeonslayers%2Fds4/packages/generic/ds4/latest/system.json"
git push origin latest -f -o ci.skip
rules:
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest