Commit 4982ade0 authored by Daniel Juarez's avatar Daniel Juarez 💬
Browse files

Add CI after setting variables and permissions

parent 7d3f9ade
Pipeline #2137957 passed with stage
in 6 minutes and 29 seconds
*latest_updates.md
*monthly_updates.md
docs/sitemap/*
stages:
- build
.prod_variables: &prod_variables
OC_OPTIONS: --token ${LINUXARCHIVE_OPENSHIFT} --server https://openshift.cern.ch --namespace linux-archive
.common_functions: &common_functions |
# redefine oc to use the appropriate options. alias doesn't work here: https://askubuntu.com/a/98786
function oc {
/bin/oc $OC_OPTIONS "$@"
}
.common_script: &common_script |
oc start-build linux-archive --wait
build_prod:
stage: build
image: gitlab-registry.cern.ch/paas-tools/openshift-client
before_script:
- *common_functions
script:
- *common_script
variables:
<<: *prod_variables
only:
- master
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment