This commit is contained in:
2025-05-11 16:51:41 +08:00
parent 8206cfa9b1
commit c91a69e641

View File

@@ -2,6 +2,7 @@ stages:
- check
- build
- deploy
- sync
variables:
DockerfilePath: "./${ProjectName}/Dockerfile"
@@ -9,6 +10,26 @@ 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_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/username/project.git
- git push gitee --all
- git push gitee --tags
check-merge-target:
stage: check
script: