Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OKD
build-several-image-and-compose
Commits
6a4147c6
Commit
6a4147c6
authored
Oct 26, 2020
by
Yori Fournier
Browse files
forgot name option
parent
54da1715
Pipeline
#1919
passed with stages
in 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6a4147c6
...
...
@@ -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
:
...
...
README.md
View file @
6a4147c6
...
...
@@ -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`
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment