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
5848bbb6
Commit
5848bbb6
authored
Nov 07, 2025
by
Gadhave
Browse files
Update .gitlab-ci.yml file
parent
c5b5a896
Pipeline
#12110
passed with stages
in 31 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5848bbb6
...
...
@@ -3,7 +3,7 @@ stages:
-
test
-
diag
-
build
-
deploy
#
- deploy
variables
:
PYTHONPATH
:
"
${CI_PROJECT_DIR}"
...
...
@@ -78,21 +78,6 @@ build:
script
:
-
echo "Building image..."
-
cd Desktop/Telegram_Bot
-
docker build -t $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA .
-
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
after_script
:
-
echo "Docker image pushed successfully!"
\ No newline at end of file
deploy
:
stage
:
deploy
image
:
docker:24.0.9
tags
:
[
"
windows"
,
"
docker"
,
"
ws12"
]
script
:
-
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
-
echo "Logged into dockerhub succesfully"
-
docker push $DOCKERHUB_REPO:$PREVIOUS_BUILD_TAG
-
echo "Pushed the docker image to dockerhub succesfully"
-
if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then
docker tag $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA $DOCKERHUB_REPO:latest;
docker push $DOCKERHUB_REPO:latest;
fi
\ No newline at end of file
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