Commit d0b2fb73 authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent a17861f8
Pipeline #12059 failed with stages
in 57 seconds
...@@ -46,17 +46,19 @@ test: ...@@ -46,17 +46,19 @@ test:
build_docker_image: build_docker_image:
stage: build stage: build
image: docker:latest image:
name: gcr.io/kaniko-project/executor:latest
entrypoint: [""]
services: services:
- name: docker:dind - name: docker:dind
alias: docker alias: docker
script: script:
- echo "=== Starting Docker Build for commit" $CI_COMMIT_SHA - echo "=== Building Docker image using Kaniko ==="
- echo "Project structure:" - echo "Commit:" $CI_COMMIT_SHA
- ls -R
- echo "Navigating to Desktop/Telegram_Bot directory..."
- cd Desktop/Telegram_Bot - cd Desktop/Telegram_Bot
- echo "Building Docker image" $DOCKER_IMAGE_NAME ":" $DOCKER_TAG - /kaniko/executor \
- docker build -t $DOCKER_IMAGE_NAME . --context . \
- echo "Docker image built successfully:"" $DOCKER_IMAGE_NAME":"$DOCKER_TAG --dockerfile Dockerfile \
- docker images | grep "$DOCKER_IMAGE_NAME" --destination "$CI_REGISTRY_IMAGE:$DOCKER_TAG" \
\ No newline at end of file --no-push
- echo "✅ Kaniko build finished for image:" $CI_REGISTRY_IMAGE:$DOCKER_TAG
\ 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