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:
build_docker_image:
stage: build
image: docker:latest
image:
name: gcr.io/kaniko-project/executor:latest
entrypoint: [""]
services:
- name: docker:dind
alias: docker
script:
- echo "=== Starting Docker Build for commit" $CI_COMMIT_SHA
- echo "Project structure:"
- ls -R
- echo "Navigating to Desktop/Telegram_Bot directory..."
- echo "=== Building Docker image using Kaniko ==="
- echo "Commit:" $CI_COMMIT_SHA
- cd Desktop/Telegram_Bot
- echo "Building Docker image" $DOCKER_IMAGE_NAME ":" $DOCKER_TAG
- docker build -t $DOCKER_IMAGE_NAME .
- echo "Docker image built successfully:"" $DOCKER_IMAGE_NAME":"$DOCKER_TAG
- docker images | grep "$DOCKER_IMAGE_NAME"
\ No newline at end of file
- /kaniko/executor \
--context . \
--dockerfile Dockerfile \
--destination "$CI_REGISTRY_IMAGE:$DOCKER_TAG" \
--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