This commit is contained in:
2025-05-11 17:44:05 +08:00
parent e2f75fb4dd
commit 442036a9f1

View File

@@ -10,27 +10,27 @@ 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
image: alpine/git
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 push gitee --all
- git push gitee --tags
only:
- master
# sync_to_gitee:
# stage: sync
# image: alpine/git
# 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 push gitee --all
# - git push gitee --tags
# only:
# - master
check-merge-target: