diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4685fc..1335d74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,15 +10,15 @@ variables: MasterDockerImage: "${Ali_Docker_Registry}/${Namespace}/${MasterPackageName}" -# sync_to_github: -# stage: sync -# image: alpine/git -# script: -# - git config --global user.email "ci@example.com" -# - git config --global user.name "GitLab CI" -# - git remote add github https://oauth2:${GITHUB_TOKEN}@github.com/8720826/Hyrule.git -# - git push github --all -# - git push github --tags +sync_to_github: + stage: sync + image: alpine/git + script: + - git config --global user.email "ci@example.com" + - git config --global user.name "GitLab CI" + - git remote add github https://oauth2:${GITHUB_TOKEN}@github.com/8720826/Hyrule.git + - git push github --all + - git push github --tags sync_to_gitee: stage: sync @@ -26,9 +26,12 @@ sync_to_gitee: script: - git config --global user.email "ci@example.com" - git config --global user.name "GitLab CI" - - git remote add gitee https://oauth2:${GITEE_TOKEN}@gitee.com/q8720826/Hyrule.git + - git remote add gitee https://oauth2:${GITEE_TOKEN}@gitee.com/q8720826/hyrule.git - git push gitee --all - git push gitee --tags + only: + - master + check-merge-target: stage: check