Commit 6a4147c6 authored by Yori Fournier's avatar Yori Fournier

forgot name option

parent 54da1715
Pipeline #1919 passed with stages
in 39 seconds
......@@ -22,7 +22,7 @@ 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 --strategy=docker --binary --docker-image python:3.7 --allow-missing-images
- oc new-build --strategy=docker --binary --docker-image python:3.7 --name "$APP"
- oc start-build $APP --from-dir=./$APP --follow
build-proc1:
......@@ -45,7 +45,7 @@ build-proc2:
before_script:
- *login_to_okd
script:
- oc new-build --strategy=docker --binary --docker-image python:3.7 --allow-missing-images
- oc new-build --strategy=docker --binary --docker-image python:3.7 --name proc2
- oc start-build proc2 --from-dir=./proc2 --follow
test1:
......
......@@ -16,6 +16,8 @@ build docker_image_1 with `oc start-build --from-file=dockerfile_image1`
build2:
build docker_image_2 with `oc start-build --from-file=dockerfile_image2`
see: https://docs.openshift.com/container-platform/3.11/dev_guide/dev_tutorials/binary_builds.html#binary-builds-private-code
deploy:
create a project and an app and apply the kubernetes manifest:
`oc apply -f manifest.yaml`
......
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