This commit is contained in:
Ben Wallis 2021-04-16 20:58:56 +01:00
parent 7614aa5ee7
commit 751b3079e7
2 changed files with 15 additions and 15 deletions

View File

@ -32,3 +32,18 @@ pages:
- mkdir -p public
- cargo doc --no-deps --document-private-items
- mv target/doc/* public
tag-release:
extends: .publish
tags:
- veloren-docker
# rules:
# - if: $CI_PIPELINE_SOURCE == "schedule" && ( $CI_COMMIT_REF_NAME =~ /^master$/ || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ )
# when: always
# - when: never
script:
- git config --global user.email "gitlab@veloren.net"
- git config --global user.name "Veloren Admin"
- git remote add api-origin https://oauth2:${TAGTOKEN}@gitlab.com/veloren/veloren.git
- git tag -f airshipper
- git push api-origin --tags -f

View File

@ -18,18 +18,3 @@
- if: $CI_PIPELINE_SOURCE == "schedule" && ( $CI_COMMIT_REF_NAME =~ /^master$/ || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ )
when: always
- when: never
tag-release:
stage: tag
tags:
- veloren-docker
# rules:
# - if: $CI_PIPELINE_SOURCE == "schedule" && ( $CI_COMMIT_REF_NAME =~ /^master$/ || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/ )
# when: always
# - when: never
script:
- git config --global user.email "gitlab@veloren.net"
- git config --global user.name "Veloren Admin"
- git remote add api-origin https://oauth2:${TAGTOKEN}@gitlab.com/veloren/veloren.git
- git tag -f airshipper
- git push api-origin --tags -f