Merge branch 'more-pipeline-improvement' into 'master'
improve pipeline even more See merge request dungeonslayers/ds4!140
This commit is contained in:
commit
586d12a1ae
1 changed files with 3 additions and 19 deletions
|
@ -97,8 +97,8 @@ publish-artifacts:
|
||||||
git tag -f ${RELEASE_VERSION}
|
git tag -f ${RELEASE_VERSION}
|
||||||
git push origin ci-processing:${CI_BUILD_REF_NAME} -o ci.skip
|
git push origin ci-processing:${CI_BUILD_REF_NAME} -o ci.skip
|
||||||
git push origin ${RELEASE_VERSION}
|
git push origin ${RELEASE_VERSION}
|
||||||
rules:
|
only:
|
||||||
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
- $CI_DEFAULT_BRANCH
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
release-patch:
|
release-patch:
|
||||||
|
@ -116,22 +116,6 @@ release-major:
|
||||||
RELEASE_TYPE: major
|
RELEASE_TYPE: major
|
||||||
<<: *release-template
|
<<: *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:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
|
Loading…
Reference in a new issue