File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 11
22stages :
3+ - mirror
34 - package
45 - deploy
56
@@ -16,15 +17,40 @@ include:
1617 refs :
1718 - tags
1819 - master
20+ - schedules
1921
2022.push-docker-image :
2123 extends : .build_with_kaniko
2224 only :
2325 refs :
2426 - tags
2527 - master
28+ except :
29+ refs :
30+ - schedules
2631
2732# ####################### JOBS ########################
33+ # MIRRORING
34+ git-mirror-upstream_master :
35+ stage : mirror
36+ only :
37+ - schedules
38+ variables :
39+ GIT_STRATEGY : clone
40+ GIT_CHECKOUT : " false"
41+ UPSTREAM_REPO : " https://github.com/devshawn/kafka-gitops.git"
42+ script :
43+ - git remote rm upstream || true
44+ - git config user.email "${GITLAB_USER_EMAIL}"
45+ - git config user.name "${GITLAB_USER_NAME}"
46+ - git remote remove origin
47+ - git remote add origin git@sources.devtools.local:${CI_PROJECT_PATH}.git
48+ - git remote add upstream ${UPSTREAM_REPO}
49+ - git fetch --all
50+ - git checkout upstream_master || git checkout -b upstream_master upstream/master
51+ - git merge upstream/master --ff
52+ - git push origin HEAD:upstream_master
53+
2854build-docker :
2955 stage : package
3056 extends : .build-docker-image
You can’t perform that action at this time.
0 commit comments