Commit 003168d4 authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 9b7bc928
Pipeline #12107 passed with stages
in 6 minutes and 11 seconds
...@@ -16,6 +16,7 @@ variables: ...@@ -16,6 +16,7 @@ variables:
DOCKER_HOST: unix:///var/run/docker.sock DOCKER_HOST: unix:///var/run/docker.sock
DOCKER_BUILDKIT: "1" DOCKER_BUILDKIT: "1"
DOCKERHUB_REPO: "$DOCKER_USERNAME/teledatastream" # set repo name DOCKERHUB_REPO: "$DOCKER_USERNAME/teledatastream" # set repo name
PREVIOUS_BUILD_TAG: "8fc5fa08"
.build_template: .build_template:
...@@ -70,6 +71,6 @@ deploy: ...@@ -70,6 +71,6 @@ 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:$CI_COMMIT_SHORT_SHA - docker push $DOCKERHUB_REPO:$PREVIOUS_BUILD_TAG
- echo "Pushed the docker image to dockerhub succesfully" - echo "Pushed the docker image to dockerhub succesfully"
\ No newline at end of file
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