mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
x
This commit is contained in:
parent
7956296f1f
commit
f9ae1c58fb
@ -37,14 +37,15 @@ 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
|
||||
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 remove api-origin || echo "api-origin remote did not already exist"
|
||||
- git remote add api-origin https://oauth2:${TAGTOKEN}@gitlab.com/veloren/veloren.git
|
||||
- ACCESSTOKEN=$TAGTOKEN
|
||||
- git remote add api-origin https://oauth2:$ACCESSTOKEN@gitlab.com/veloren/veloren.git
|
||||
- git tag -f airshipper
|
||||
- git push api-origin --tags -f
|
Loading…
Reference in New Issue
Block a user