Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cecile Cavet
test-ci
Commits
8a0a3e7e
Commit
8a0a3e7e
authored
Sep 23, 2021
by
Cecile Cavet
Browse files
Update .gitlab-ci.yml
parent
fa40c8c4
Pipeline
#136987
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
.gitlab-ci.yml
.gitlab-ci.yml
+15
-1
No files found.
.gitlab-ci.yml
View file @
8a0a3e7e
variables
:
DOCKER_DRIVER
:
overlay2
#image: python:alpine
image
:
centos:latest
...
...
@@ -13,7 +16,7 @@ cache:
stages
:
-
step1
-
step2
-
build
-
deploy
step1
:
...
...
@@ -80,3 +83,14 @@ deploy to staging:
# - public
# only:
# - master
build
:
image
:
docker:19.03.11
stage
:
build
services
:
-
docker:19.03.11-dind
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
-
docker build --pull -t ${IMAGE_BUILD_TAG} -f Dockerfile --build-arg IMAGE_VERSION=${IMAGE_BUILD_TAG} .
-
docker push ${IMAGE_BUILD_TAG}
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