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
Amine GHOZLANE
shaman
Commits
9fe3a923
Commit
9fe3a923
authored
Aug 20, 2019
by
Amine GHOZLANE
Browse files
Modified behavior for the docker registry
parent
2d25353d
Pipeline
#13875
passed with stage
in 45 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9fe3a923
...
...
@@ -14,8 +14,19 @@ build_master:
variables
:
CI_DEBUG_TRACE
:
"
false"
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build
--build-arg CI_COMMIT_REF_SLUG
--build-arg CI_COMMIT_SHA
--build-arg CI_COMMIT_SHORT_SHA
--cache-from "$CI_REGISTRY_IMAGE:latest"
--cache-from "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
--tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
--tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
--tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
.
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
#- docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
-
docker build -t registry-gitlab.pasteur.fr/aghozlan/shaman .
-
docker push registry-gitlab.pasteur.fr/aghozlan/shaman
#- docker build -t aghozlane/shaman .
#- docker push -t aghozlane/shaman
\ No newline at end of file
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