diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eedfcc5..7f99d31 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: