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
ee9e597b
Commit
ee9e597b
authored
Nov 06, 2025
by
Gadhave
Browse files
Update .gitlab-ci.yml file
parent
e5330122
Pipeline
#12089
passed with stages
in 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ee9e597b
...
@@ -10,8 +10,9 @@ variables:
...
@@ -10,8 +10,9 @@ variables:
DOCKER_REGISTRY
:
"
docker.io"
DOCKER_REGISTRY
:
"
docker.io"
DOCKER_TAG
:
"
$CI_COMMIT_SHORT_SHA"
DOCKER_TAG
:
"
$CI_COMMIT_SHORT_SHA"
DOCKER_CONTEXT
:
"
Desktop/Telegram_Bot"
DOCKER_CONTEXT
:
"
Desktop/Telegram_Bot"
IMAGE_NAME
:
"
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
lint
:
lint
:
...
@@ -41,9 +42,6 @@ test:
...
@@ -41,9 +42,6 @@ test:
build
:
build
:
stage
:
build
stage
:
build
image
:
docker:latest
image
:
docker:latest
services
:
-
name
:
docker:dind
alias
:
docker
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..."
...
@@ -53,7 +51,6 @@ build:
...
@@ -53,7 +51,6 @@ 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 .
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