Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
5bedf473
Commit
5bedf473
authored
Jul 03, 2018
by
Pablo Panero
Browse files
Fix: Auto-import image in dev openshift
parent
c50f8403
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5bedf473
...
...
@@ -85,11 +85,9 @@ tag_image_prod:
########## DEV ##########
### Import image into OpenShift. Import $CI_COMMIT_TAG if present or 'latest' if not.
import_image_dev
:
&import_image_openshift
import_image_dev
:
stage
:
import_image
environment
:
staging
only
:
-
tags
image
:
gitlab-registry.cern.ch/paas-tools/openshift-client:latest
script
:
-
oc import-image ${RESOURCE}:${CI_COMMIT_TAG:-latest} --token=${TOKEN} --server=${OPENSHIFT_SERVER} -n ${NAMESPACE}
...
...
@@ -101,7 +99,13 @@ import_image_dev: &import_image_openshift
########## PROD ##########
### Import image into OpenShift. Import $CI_COMMIT_TAG if present or 'latest' if not.
import_image_prod
:
<<
:
*import_image_openshift
stage
:
import_image
environment
:
master
only
:
-
tags
image
:
gitlab-registry.cern.ch/paas-tools/openshift-client:latest
script
:
-
oc import-image ${RESOURCE}:${CI_COMMIT_TAG:-latest} --token=${TOKEN} --server=${OPENSHIFT_SERVER} -n ${NAMESPACE}
variables
:
TOKEN
:
${SERVICE_ACCOUNT_TOKEN_PROD}
NAMESAPCE
:
${NAMESPACE_PROD}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment