diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8c46bb..128da5d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,17 @@ stages: - generate - trigger + - deploy + + +mirror-contour: + stage: deploy + variables: + GIT_DEPTH: "0" + rules: + - if: '$CI_COMMIT_BRANCH == "contour" && $CI_PIPELINE_SOURCE == "push"' + script: + - git push --force "$CONTOUR_MIRROR_PUSH_URL" "$CI_COMMIT_SHA:refs/heads/contour" generate-pipeline: stage: generate @@ -65,3 +76,12 @@ trigger-downstream-prod: - if: '$CI_COMMIT_BRANCH =~ /^feature\/.*/' ## + +mirror-contour: + stage: deploy + variables: + GIT_DEPTH: "0" + rules: + - if: '$CI_COMMIT_BRANCH == "contour" && $CI_PIPELINE_SOURCE == "push"' + script: + - git push --force "$CONTOUR_MIRROR_PUSH_URL" "$CI_COMMIT_SHA:refs/heads/contour" \ No newline at end of file