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:
stage: build
image:
name: alpine:3.18
name: docker:26.0.0-cli
entrypoint: [""]
tags:
- kube
only:
- master
script:
- apk add --no-cache img
- img login --password "$CI_JOB_TOKEN" --username "$CI_REGISTRY_USER" "$CI_REGISTRY"
- img build --no-console -t "$CI_REGISTRY/telegram-bots/s3bot:latest" .
- img push "$CI_REGISTRY/telegram-bots/s3bot:latest"
- docker login --password "$CI_JOB_TOKEN" --username "$CI_REGISTRY_USER" "$CI_REGISTRY"
- docker build --progress=plain -t "$CI_REGISTRY/telegram-bots/s3bot:latest" .
- docker push "$CI_REGISTRY/telegram-bots/s3bot:latest"
deploy:
stage: deploy