Skip to content
Snippets Groups Projects

sync linux-qa when a push happens in master so they are in sync

Merged Daniel Juarez Gonzalez requested to merge sync_qa_master into master
1 file
+ 17
0
Compare changes
  • Side-by-side
  • Inline
+ 17
0
stages:
- build
- sync_test
.prod_variables: &prod_variables
OC_OPTIONS: --token ${LINUXWEB_PROD_OPENSHIFT} --server https://openshift.cern.ch --namespace linux
@@ -42,3 +43,19 @@ build_prod:
<<: *prod_variables
only:
- master
# We make linux-qa have the latest pushed changes to master as well so they are synchronised
sync test with prod:
stage: sync_test
image: gitlab-registry.cern.ch/paas-tools/openshift-client
before_script:
- *common_functions
script:
# We need to alter buildConfig to point to the branch (CI_COMMIT_REF_NAME) reference this CI is triggering from
# Use double quotes so variable interpolation works, but this requires scaping JSON patch
- oc patch buildconfig linux-docs -p "{\"spec\":{\"source\":{\"git\":{\"ref\":\"$CI_COMMIT_REF_NAME\"}}}}"
- *common_script
only:
- master
variables:
<<: *dev_variables
Loading