Commit 6c72b9e1 authored by Yori Fournier's avatar Yori Fournier
Browse files

add start-build

parent baf7baf2
Pipeline #1912 failed with stages
in 16 seconds
......@@ -22,7 +22,8 @@ variables:
- 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"
- oc new-build --strategy=docker --to="$APP" --name="$APP"
- oc start-build $APP --from-file=$DOCKER_FILE --follow
build-proc1:
stage: build
......@@ -33,7 +34,7 @@ build-proc1:
before_script:
- *login_to_okd
script:
- oc new-build --dockerfile=dockerfile_proc1 --strategy=docker --to=proc1
- *build_image
build-proc2:
stage: build
......@@ -44,7 +45,8 @@ build-proc2:
before_script:
- *login_to_okd
script:
- oc new-build --dockerfile=dockerfile_proc2 --strategy=docker --to=proc2
- oc new-build --strategy=docker --to=proc2 --name=proc2
- oc start-build proc2 --from-file=dockerfile_proc2 --follow
test1:
stage: test
......
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