Updated build.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2024-04-04 03:38:31 +02:00
parent 9ad43e226c
commit 0b943c56c4

View File

@ -43,17 +43,16 @@ fmt:
build: build:
stage: build stage: build
image: image:
name: alpine:3.18 name: docker:26.0.0-cli
entrypoint: [""] entrypoint: [""]
tags: tags:
- kube - kube
only: only:
- master - master
script: script:
- apk add --no-cache img - docker login --password "$CI_JOB_TOKEN" --username "$CI_REGISTRY_USER" "$CI_REGISTRY"
- img login --password "$CI_JOB_TOKEN" --username "$CI_REGISTRY_USER" "$CI_REGISTRY" - docker build --progress=plain -t "$CI_REGISTRY/telegram-bots/s3bot:latest" .
- img build --no-console -t "$CI_REGISTRY/telegram-bots/s3bot:latest" . - docker push "$CI_REGISTRY/telegram-bots/s3bot:latest"
- img push "$CI_REGISTRY/telegram-bots/s3bot:latest"
deploy: deploy:
stage: deploy stage: deploy