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
a3981a39
Commit
a3981a39
authored
Oct 26, 2020
by
Yori Fournier
Browse files
Update .gitlab-ci.yml
parent
0512ca59
Pipeline
#1910
failed with stages
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a3981a39
...
...
@@ -17,6 +17,13 @@ variables:
#OPENSHIFT_TOKEN:
#OPENSHIFT_PROJECT: python
.login_to_okd
:
&login_to_okd
-
oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
-
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"
build-proc1
:
stage
:
build
variables
:
...
...
@@ -39,13 +46,6 @@ build-proc2:
script
:
-
*build_image
.login_to_okd
:
&login_to_okd
-
oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" --insecure-skip-tls-verify
-
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"
test1
:
stage
:
test
before_script
:
[]
...
...
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