Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
6cb669cd
Commit
6cb669cd
authored
Feb 13, 2017
by
J. Fernando Sánchez
Browse files
Added docker auth to docker push job
parent
506feec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6cb669cd
...
...
@@ -61,6 +61,8 @@ image-2.7:
image-latest
:
stage
:
release
before_script
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script
:
-
docker build -f Dockerfile . -t $CI_REGISTRY_IMAGE
-
docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:$CI_BUILD_REF_SLUG
...
...
@@ -68,4 +70,4 @@ image-latest:
-
docker push $CI_REGISTRY_IMAGE:$CI_BUILD_REF_SLUG
only
:
-
master
-
triggers
-
triggers
\ No newline at end of file
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