create a nightly tag that always point to the released nightly version of veloren in the respective schedule so that others can consume it

This commit is contained in:
Marcel Märtens 2021-07-20 23:03:10 +02:00
parent 5f38fb3c5b
commit 8285b1d6e0

View File

@ -46,6 +46,19 @@ docker-nightly:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server-cli/Dockerfile --destination "${CI_REGISTRY_IMAGE}/server-cli:nightly" - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server-cli/Dockerfile --destination "${CI_REGISTRY_IMAGE}/server-cli:nightly"
tag-nightly:
extends: .publish-nightly
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
tags:
- veloren-benchmark
script:
- git config --global user.email "gitlab-veloren-bot@veloren.net"
- git config --global user.name "veloren-bot"
- git config --global http.postBuffer 52428800
- git remote set-url origin https://veloren-bot:${GITLAB_TOKEN_WRITE}@${CI_PROJECT_URL:8}
- git tag -a "nightly" -m '' -f
- git push origin nightly -f
pages: pages:
extends: .publish extends: .publish
image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG} image: registry.gitlab.com/veloren/veloren-docker-ci/cache/quality:${CACHE_IMAGE_TAG}
@ -56,4 +69,4 @@ pages:
- rm -rf public - rm -rf public
- mkdir -p public - mkdir -p public
- cargo doc --no-deps --document-private-items - cargo doc --no-deps --document-private-items
- mv target/doc/* public - mv target/doc/* public