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
78b2067e
Commit
78b2067e
authored
Nov 07, 2025
by
Gadhave
Browse files
Update .gitlab-ci.yml file
parent
8fc5fa08
Pipeline
#12101
failed with stages
in 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
78b2067e
...
@@ -2,8 +2,8 @@ stages:
...
@@ -2,8 +2,8 @@ stages:
-
lint
-
lint
-
test
-
test
-
diag
-
diag
-
build
#
- build
#
- deploy
-
deploy
variables
:
variables
:
PYTHONPATH
:
"
${CI_PROJECT_DIR}"
PYTHONPATH
:
"
${CI_PROJECT_DIR}"
...
@@ -63,20 +63,10 @@ diag:
...
@@ -63,20 +63,10 @@ diag:
-
docker version ||
true
-
docker version ||
true
-
docker info ||
true
-
docker info ||
true
build
:
deploy
:
stage
:
build
stage
:
deploy
image
:
docker:24.0.9
image
:
docker:24.0.9
extends
:
.build_template
tags
:
[
"
windows"
,
"
docker"
,
"
ws12"
]
before_script
:
-
echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA}
-
echo "Logging in to Docker registry..."
-
echo "Docker Registry :" ${DOCKER_REGISTRY}
-
echo "Docker Username :" ${DOCKER_USERNAME}
-
echo "Docker Passowrd :" ${DOCKER_PASSWORD}
script
:
script
:
-
echo "Building image..."
-
echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
-
cd Desktop/Telegram_Bot
-
echo "Logged into dockerhub succesfully"
-
docker build -t $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA .
\ No newline at end of file
after_script
:
-
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