Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
software-project-WS25
Telegram Team
Commits
58a1cfea
Commit
58a1cfea
authored
Nov 05, 2025
by
Gadhave
Browse files
Update .gitlab-ci.yml file
parent
262ec5a6
Pipeline
#12066
failed with stages
in 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
58a1cfea
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment