Commit 93fd5081 authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 63c7bd1a
Pipeline #12061 failed with stages
in 24 seconds
......@@ -38,19 +38,16 @@ test:
after_script:
- echo "Tests completed succesfully"
build_docker_image:
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:latest
entrypoint: [""]
before_script: [] # prevent GitLab from using sh
services:
- name: docker:dind
alias: docker
script:
- |
/kaniko/executor --context . \
--dockerfile Dockerfile \
--destination "$DOCKER_IMAGE_NAME:$DOCKER_TAG" \
- echo "Building image with Kaniko (no push)..."
- >
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--no-push
- echo "✅ Kaniko build finished for image:" $CI_REGISTRY_IMAGE:$DOCKER_TAG
\ No newline at end of file
--destination $DOCKER_IMAGE_NAME:$DOCKER_TAG
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