mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-05 18:31:00 +03:00
++ add mirror push
This commit is contained in:
parent
a6dd669ef1
commit
ff0996c926
@ -5,13 +5,16 @@ stages:
|
||||
|
||||
|
||||
mirror-contour:
|
||||
stage: deploy
|
||||
stage: trigger
|
||||
image: alpine:3.21
|
||||
variables:
|
||||
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:
|
||||
- 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user