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
e9403f34
Commit
e9403f34
authored
Nov 06, 2025
by
Gadhave
Browse files
Update .gitlab-ci.yml file
parent
62ed51b8
Pipeline
#12091
failed with stages
in 1 minute and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e9403f34
...
@@ -12,12 +12,22 @@ variables:
...
@@ -12,12 +12,22 @@ variables:
DOCKER_CONTEXT
:
"
Desktop/Telegram_Bot"
DOCKER_CONTEXT
:
"
Desktop/Telegram_Bot"
IMAGE_NAME
:
"
pranav446/telegram-bot"
IMAGE_NAME
:
"
pranav446/telegram-bot"
DOCKER_TLS_CERTDIR
:
"
/certs"
DOCKER_TLS_CERTDIR
:
"
/certs"
DOCKER_HOST
:
unix:///var/run/docker.sock
# Connect to host Docker daemon
DOCKER_HOST
:
unix:///var/run/docker.sock
DOCKER_BUILDKIT
:
"
1"
DOCKERHUB_REPO
:
"
$DOCKER_USERNAME/teledatastream"
# set repo name
.build_template
:
tags
:
[
"
windows"
,
"
docker"
,
"
ws12"
]
# match your runner tags
before_script
:
-
echo "Docker CLI info:"
-
docker version
lint
:
lint
:
stage
:
lint
stage
:
lint
image
:
python:3.10
image
:
python:3.10
extends
:
.build_template
before_script
:
before_script
:
-
pip install flake8
-
pip install flake8
script
:
script
:
...
@@ -29,6 +39,7 @@ lint:
...
@@ -29,6 +39,7 @@ lint:
test
:
test
:
stage
:
test
stage
:
test
image
:
python:3.10
image
:
python:3.10
extends
:
.build_template
before_script
:
before_script
:
-
pip install pytest
-
pip install pytest
-
echo "Running Tests"
-
echo "Running Tests"
...
@@ -41,7 +52,7 @@ test:
...
@@ -41,7 +52,7 @@ test:
build
:
build
:
stage
:
build
stage
:
build
image
:
docker:
latest
image
:
docker:
24.0.9
before_script
:
before_script
:
-
echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA}
-
echo "Building Docker image for commit:" ${CI_COMMIT_SHORT_SHA}
-
echo "Logging in to Docker registry..."
-
echo "Logging in to Docker registry..."
...
@@ -51,7 +62,7 @@ build:
...
@@ -51,7 +62,7 @@ build:
-
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin "${DOCKER_REGISTRY}"
-
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin "${DOCKER_REGISTRY}"
script
:
script
:
-
echo "Building image..."
-
echo "Building image..."
-
docker build -t $
IMAGE_NAME:$DOCKER_TAG
.
-
docker build -t $
DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA
.
after_script
:
after_script
:
-
echo "Docker image pushed successfully!"
-
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