Files
autotex/.gitlab-ci.yml
Pavel Kirilin 88c6daceb2 Initial commit.
Signed-off-by: Pavel Kirilin <win10@list.ru>
2024-07-14 23:40:38 +02:00

44 lines
844 B
YAML

stages:
- build
- deploy
build:
stage: build
image:
name: docker:26.0.0-cli
entrypoint: [""]
tags:
- kube
only:
- master
script:
- docker login --password "$CI_JOB_TOKEN" --username "$CI_REGISTRY_USER" "$CI_REGISTRY"
- docker build --progress=plain -t "$CI_REGISTRY/telegram-bots/autotex:latest" .
- docker push "$CI_REGISTRY/telegram-bots/autotex:latest"
deploy:
stage: deploy
image:
name: alpine/helm:3.13.2
entrypoint: ["/bin/sh", "-c"]
tags:
- kube
only:
- master
script:
- helm
upgrade
autotex
./helm
--install
--wait
--create-namespace
--atomic
--timeout 2m
--namespace "$NAMESPACE"
-f "$HELM_CONFIG"
--set image.repository="$CI_REGISTRY/telegram-bots/autotex"
--set image.tag="latest"