Commit 36c3bda6 authored by Amine  GHOZLANE's avatar Amine GHOZLANE

Modified behavior for gitlab ci

parent 9fe3a923
Pipeline #13878 passed with stage
in 45 minutes and 6 seconds
......@@ -16,17 +16,8 @@ build_master:
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 aghozlane/shaman .
#- docker push -t aghozlane/shaman
\ No newline at end of file
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment