Commit 9a0b664e authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 7de08e58
Pipeline #12045 failed with stages
in 1 minute and 1 second
...@@ -45,7 +45,11 @@ build: ...@@ -45,7 +45,11 @@ build:
stage: build stage: build
image: docker:latest image: docker:latest
services: services:
- docker:dind - name: docker:dind
alias: docker
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_TLS_CERTDIR: "" # Disable TLS since we’re in a trusted CI env
before_script: before_script:
- echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA} - echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA}
- echo "Logging in to Docker registry..." - echo "Logging in to Docker registry..."
...@@ -59,4 +63,6 @@ build: ...@@ -59,4 +63,6 @@ build:
- echo "Pushing image to ${DOCKER_REGISTRY}..." - echo "Pushing image to ${DOCKER_REGISTRY}..."
- docker push "${IMAGE_NAME}:${IMAGE_TAG}" - docker push "${IMAGE_NAME}:${IMAGE_TAG}"
after_script: after_script:
- echo "Docker image pushed successfully!" - echo "Docker image pushed successfully!"
\ No newline at end of file tags:
- docker
\ 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