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
efee6325
Commit
efee6325
authored
Nov 04, 2025
by
Gadhave
Browse files
Update .gitlab-ci.yml file
parent
53c166e7
Pipeline
#12050
failed with stages
in 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
efee6325
...
...
@@ -44,22 +44,21 @@ test:
build
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:latest
entrypoint
:
[
"
"
]
image
:
alpine:latest
variables
:
DOCKER_REGISTRY
:
docker.io
DOCKER_CONFIG
:
/kaniko/.docker/
IMAGE_NAME
:
"
${DOCKER_REGISTRY}/${DOCKER_USERNAME}/${CI_PROJECT_NAME}"
IMAGE_TAG
:
"
${CI_COMMIT_SHORT_SHA}"
script
:
# Create Docker auth config for Kaniko
-
apk add --no-cache curl
-
curl -sSLO https://storage.googleapis.com/kaniko-project/executor && chmod +x executor && mv executor /usr/local/bin/kaniko
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"${DOCKER_REGISTRY}\":{\"username\":\"${DOCKER_USERNAME}\",\"password\":\"${DOCKER_PASSWORD}\"}}}" > /kaniko/.docker/config.json
- /
kaniko/executor
\
-
echo "{\"auths\":{\"${DOCKER_REGISTRY}\":{\"username\":\"${DOCKER_USERNAME}\",\"password\":\"${DOCKER_PASSWORD}\"}}}" > /kaniko/.docker/config.json
-
/
usr/local/bin/kaniko
\
--context "${CI_PROJECT_DIR}/Desktop/Telegram_Bot" \
--dockerfile "${CI_PROJECT_DIR}/Desktop/Telegram_Bot/Dockerfile" \
--destination "${IMAGE_NAME}:${IMAGE_TAG}" \
--cleanup
after_script
:
-
echo "Docker image pushed successfully!"
\ No newline at end of file
-
echo "Docker image pushed successfully!"
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