Commit dc5bf619 authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 65c96ffa
Pipeline #12084 canceled with stages
...@@ -44,12 +44,20 @@ test: ...@@ -44,12 +44,20 @@ test:
after_script: after_script:
- echo "Tests completed succesfully" - echo "Tests completed succesfully"
build_image: build:
stage: build stage: build
tags: image: docker:latest
- docker services:
- windows - docker:dind
before_script:
- echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA}
- echo "Logging in to Docker registry..."
- echo "Docker Registry :" ${DOCKER_REGISTRY}
- echo "Docker Username :" ${DOCKER_USERNAME}
- echo "Docker Passowrd :" ${DOCKER_PASSWORD}
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin "${DOCKER_REGISTRY}"
script: script:
- echo "Checking Docker version..." - echo "Building image..."
- docker version after_script:
- echo "Building Docker image..." - echo "Docker image pushed successfully!"
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