mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-09 05:21:36 +03:00
++ add mirror push
This commit is contained in:
parent
a6dd669ef1
commit
ff0996c926
@ -5,13 +5,16 @@ stages:
|
|||||||
|
|
||||||
|
|
||||||
mirror-contour:
|
mirror-contour:
|
||||||
stage: deploy
|
stage: trigger
|
||||||
|
image: alpine:3.21
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: "0"
|
GIT_DEPTH: "0"
|
||||||
|
before_script:
|
||||||
|
- apk add --no-cache git ca-certificates
|
||||||
|
script:
|
||||||
|
- git push --force "$CONTOUR_MIRROR_PUSH_URL" "$CI_COMMIT_SHA:refs/heads/contour"
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "contour" && $CI_PIPELINE_SOURCE == "push"'
|
- 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user