Commit 4a98cd5e authored by Yori Fournier's avatar Yori Fournier
Browse files

try to define dockerfile names before defining build

parent d96a4c9c
......@@ -17,13 +17,6 @@ variables:
#OPENSHIFT_TOKEN:
#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:
stage: build
variables:
......@@ -46,6 +39,13 @@ build-proc2:
script:
- *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:
stage: test
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