Commit 78b2067e authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 8fc5fa08
Pipeline #12101 failed with stages
in 39 seconds
......@@ -2,8 +2,8 @@ stages:
- lint
- test
- diag
- build
# - deploy
# - build
- deploy
variables:
PYTHONPATH: "${CI_PROJECT_DIR}"
......@@ -63,20 +63,10 @@ diag:
- docker version || true
- docker info || true
build:
stage: build
deploy:
stage: deploy
image: docker:24.0.9
extends: .build_template
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}
tags: ["windows","docker","ws12"]
script:
- echo "Building image..."
- cd Desktop/Telegram_Bot
- docker build -t $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA .
after_script:
- echo "Docker image pushed successfully!"
- echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- echo "Logged into dockerhub succesfully"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment