Commit ee9e597b authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent e5330122
Pipeline #12089 passed with stages
in 23 seconds
......@@ -10,8 +10,9 @@ variables:
DOCKER_REGISTRY: "docker.io"
DOCKER_TAG: "$CI_COMMIT_SHORT_SHA"
DOCKER_CONTEXT: "Desktop/Telegram_Bot"
IMAGE_NAME: "telegram-bot"
IMAGE_NAME: "pranav446/telegram-bot"
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_HOST: unix:///var/run/docker.sock # Connect to host Docker daemon
lint:
......@@ -41,9 +42,6 @@ test:
build:
stage: build
image: docker:latest
services:
- name: docker:dind
alias: docker
before_script:
- echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA}
- echo "Logging in to Docker registry..."
......@@ -53,7 +51,6 @@ build:
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin "${DOCKER_REGISTRY}"
script:
- echo "Building image..."
- docker build -t $IMAGE_NAME:$DOCKER_TAG .
after_script:
- 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