Commit 57ea1043 authored by Pablo Panero's avatar Pablo Panero
Browse files

Migrate dev instance from test to prod

parent 0267e576
......@@ -9,8 +9,8 @@ variables:
### also the variable name
RESOURCE: cern-search-rest-api
### OpenShift namespace and server values
NAMESPACE_DEV: test-cern-search-master
OPENSHIFT_SERVER_DEV: https://openshift-dev.cern.ch
NAMESPACE_DEV: cern-search-master
OPENSHIFT_SERVER_DEV: https://openshift.cern.ch
NAMESPACE_PROD: cern-search-master
OPENSHIFT_SERVER_PROD: https://openshift.cern.ch
......@@ -70,7 +70,7 @@ tag_image_dev: &tag_image_openshift
script:
- oc tag --source=docker ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG} ${RESOURCE}:${CI_COMMIT_TAG} --token=${TOKEN} --server=${OPENSHIFT_SERVER} -n ${NAMESPACE}
variables:
TOKEN: ${SERVICE_ACCOUNT_TOKEN_DEV}
TOKEN: ${SERVICE_ACCOUNT_TOKEN_PROD}
NAMESPACE: ${NAMESPACE_DEV}
OPENSHIFT_SERVER: ${OPENSHIFT_SERVER_DEV}
......@@ -92,7 +92,7 @@ import_image_dev:
script:
- oc import-image ${RESOURCE}:${CI_COMMIT_TAG:-latest} --token=${TOKEN} --server=${OPENSHIFT_SERVER} -n ${NAMESPACE}
variables:
TOKEN: ${SERVICE_ACCOUNT_TOKEN_DEV}
TOKEN: ${SERVICE_ACCOUNT_TOKEN_PROD}
OPENSHIFT_SERVER: ${OPENSHIFT_SERVER_DEV}
NAMESPACE: ${NAMESPACE_DEV}
......
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