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

pass the env file to the proper cmd: oc new-build

parent c0217c1a
Pipeline #1937 failed with stages
in 10 seconds
...@@ -21,8 +21,8 @@ variables: ...@@ -21,8 +21,8 @@ variables:
- oc project "$CI_PROJECT_NAME-$CI_PROJECT_ID" 2> /dev/null || oc new-project "$CI_PROJECT_NAME-$CI_PROJECT_ID" - oc project "$CI_PROJECT_NAME-$CI_PROJECT_ID" 2> /dev/null || oc new-project "$CI_PROJECT_NAME-$CI_PROJECT_ID"
.build_image: &build_image .build_image: &build_image
- oc new-build --strategy=docker --binary --name "build-$APP" --to "image-$APP" - oc new-build --strategy=docker --binary --name "build-$APP" --to "image-$APP" --env-file=./docker/env
- oc start-build build-$APP --from-dir=./docker/$APP --follow --env-file=./docker/env - oc start-build build-$APP --from-dir=./docker/$APP --follow
build-pgapp: build-pgapp:
stage: build stage: build
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