Commit a3981a39 authored by Yori Fournier's avatar Yori Fournier
Browse files

Update .gitlab-ci.yml

parent 0512ca59
Pipeline #1910 failed with stages
in 16 seconds
...@@ -17,6 +17,13 @@ variables: ...@@ -17,6 +17,13 @@ variables:
#OPENSHIFT_TOKEN: #OPENSHIFT_TOKEN:
#OPENSHIFT_PROJECT: python #OPENSHIFT_PROJECT: python
.login_to_okd: &login_to_okd
- oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
- oc project "$CI_PROJECT_NAME-$CI_PROJECT_ID" 2> /dev/null || oc new-project "$CI_PROJECT_NAME-$CI_PROJECT_ID"
.build_image: &build_image
- oc new-build --dockerfile="$DOCKER_FILE" --strategy=docker --to="$APP"
build-proc1: build-proc1:
stage: build stage: build
variables: variables:
...@@ -39,13 +46,6 @@ build-proc2: ...@@ -39,13 +46,6 @@ build-proc2:
script: script:
- *build_image - *build_image
.login_to_okd: &login_to_okd
- oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
- oc project "$CI_PROJECT_NAME-$CI_PROJECT_ID" 2> /dev/null || oc new-project "$CI_PROJECT_NAME-$CI_PROJECT_ID"
.build_image: &build_image
- oc new-build --dockerfile="$DOCKER_FILE" --strategy=docker --to="$APP"
test1: test1:
stage: test stage: test
before_script: [] before_script: []
......
Markdown is supported
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