Commit 58a1cfea authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 262ec5a6
Pipeline #12066 failed with stages
in 27 seconds
...@@ -40,24 +40,22 @@ test: ...@@ -40,24 +40,22 @@ test:
after_script: after_script:
- echo "Tests completed succesfully" - echo "Tests completed succesfully"
build_image: build_with_kaniko:
stage: build stage: build
image: docker:25.0.3 image:
services: name: gcr.io/kaniko-project/executor:latest
- docker:25.0.3-dind entrypoint: [""]
script: script:
- echo "===== START BUILD:" $IMAGE_NAME - echo "===== START BUILD:" $IMAGE_NAME
- cd $DOCKER_CONTEXT - mkdir -p /workspace && cp -r $CI_PROJECT_DIR/$DOCKER_CONTEXT /workspace/context
- | - /kaniko/executor --context=dir:///workspace/context --dockerfile=/workspace/context/Dockerfile --destination=unused:latest --no-push --tarPath=/workspace/${IMAGE_NAME}_${CI_COMMIT_SHORT_SHA}.tar
docker build \ - echo "===== BUILD COMPLETE:" /workspace/${IMAGE_NAME}_${CI_COMMIT_SHORT_SHA}.tar
--pull \ artifacts:
-t "$IMAGE_NAME:$CI_COMMIT_SHORT_SHA" \ paths:
-t "$IMAGE_NAME:latest" \ - /workspace/${IMAGE_NAME}_${CI_COMMIT_SHORT_SHA}.tar
-f Dockerfile . expire_in: 1 day
- echo "===== BUILD COMPLETE =====" only:
- echo "IMAGE_TAG:" $IMAGE_NAME:$CI_COMMIT_SHORT_SHA - branches
- docker images | grep "$IMAGE_NAME"
tags:
- docker
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