mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-08 21:21:34 +03:00
++ add push mirror
This commit is contained in:
parent
3434187302
commit
a6dd669ef1
@ -1,6 +1,17 @@
|
|||||||
stages:
|
stages:
|
||||||
- generate
|
- generate
|
||||||
- trigger
|
- 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:
|
generate-pipeline:
|
||||||
stage: generate
|
stage: generate
|
||||||
@ -65,3 +76,12 @@ trigger-downstream-prod:
|
|||||||
- if: '$CI_COMMIT_BRANCH =~ /^feature\/.*/'
|
- 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