Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
03025797
Commit
03025797
authored
Oct 26, 2020
by
Yori Fournier
Browse files
added app creation in deploy
parent
b9ee1a5f
Pipeline
#1906
failed with stages
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
03025797
...
...
@@ -22,6 +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
get
services
$APP
2>
/dev/null
||
oc
new-app
.
--name=$APP
--strategy=docker"
-
"
oc
start-build
$APP
--from-file=$DOCKER_FILE
--follow
||
sleep
3s
&&
oc
start-build
$APP
--from-file=$DOCKER_FILE
--follow"
build-proc1
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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