Merge branch 'more-pipeline-improvement' into 'master'

improve pipeline even more

See merge request dungeonslayers/ds4!140
This commit is contained in:
Johannes Loher 2021-09-14 15:01:54 +00:00
commit 586d12a1ae

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