mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-05 18:31:00 +03:00
++ add push mirror
This commit is contained in:
parent
3434187302
commit
a6dd669ef1
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user