Commit ca9167e9 authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent a5c4e460
Pipeline #12118 canceled with stages
in 11 seconds
...@@ -89,7 +89,7 @@ deploy: ...@@ -89,7 +89,7 @@ deploy:
script: script:
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
- echo "Logged into dockerhub succesfully!!" - echo "Logged into dockerhub succesfully!!"
- docker push $DOCKERHUB_REPO:$PREVIOUS_BUILD_TAG - docker push $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA
- echo "Pushed the docker image to dockerhub succesfully" - echo "Pushed the docker image to dockerhub succesfully"
- if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then - if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then
docker tag $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA $DOCKERHUB_REPO:latest; docker tag $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA $DOCKERHUB_REPO:latest;
......
Supports Markdown
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