Update .gitlab-ci.yml file

This commit is contained in:
Leo
2026-09-12 06:59:31 +00:00
parent 166b35bbb9
commit acf01486ff
+9 -5
View File
@@ -4,7 +4,7 @@ default:
stages: stages:
- tests - tests
- build and push - build-and-push
- deploy - deploy
tests_job1: tests_job1:
@@ -19,19 +19,23 @@ tests_job1:
- pytest tests/ - pytest tests/
build_job1: build_job1:
stage: build and push image:
push_job:
stage: build-and-push
image: image:
name: gcr.io/kaniko-project/executor:v1.23.0-debug name: gcr.io/kaniko-project/executor:v1.23.0-debug
entrypoint: [""] entrypoint: [""]
before_script: before_script:
- mkdir -p /kaniko/.docker - mkdir -p /kaniko/.docker
- cp "$DOCKER_AUTH_CONFIG" /kaniko/.docker/config.json - cp "$DOCKER_AUTH_CONFIG" /kaniko/.docker/config.json
script: script:
- /kaniko/executor - >
/kaniko/executor
--context "${CI_PROJECT_DIR}" --context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile" --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${DOCKERHUB_USER}/quote-bot:${CI_COMMIT_SHORT_SHA}" \ --destination "${DOCKERHUB_USER}/quote-bot:${CI_COMMIT_SHORT_SHA}"
--destination "${DOCKERHUB_USER}/quote-bot:latest" --destination "${DOCKERHUB_USER}/quote-bot:latest"
deploy_to_server: deploy_to_server: