Skip to content
Snippets Groups Projects
Commit ecc6f851 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Merge branch '28516-unique-namespace' into 'master'

Append CI_PROJECT_ID to project namespace

See merge request !58
parents fa3f8f28 442eb2af
No related branches found
No related tags found
1 merge request!58Append CI_PROJECT_ID to project namespace
Pipeline #
Loading
Loading
@@ -27,7 +27,7 @@ test2:
.deploy: &deploy
before_script:
- oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
- oc project "$CI_PROJECT_NAME" 2> /dev/null || oc new-project "$CI_PROJECT_NAME"
- oc project "$CI_PROJECT_NAME-$CI_PROJECT_ID" 2> /dev/null || oc new-project "$CI_PROJECT_NAME-$CI_PROJECT_ID"
script:
- "oc get services $APP 2> /dev/null || oc new-app . --name=$APP --strategy=docker"
- "oc start-build $APP --from-dir=. --follow || sleep 3s || oc start-build $APP --from-dir=. --follow"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment