improve pipeline even more
This commit is contained in:
parent
0e26d4fde6
commit
0c6fd85b99
1 changed files with 3 additions and 19 deletions
|
@ -97,8 +97,8 @@ 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"
|
||||
only:
|
||||
- $CI_DEFAULT_BRANCH
|
||||
when: manual
|
||||
|
||||
release-patch:
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue