push runner

This commit is contained in:
Administrator 2022-08-18 19:20:07 +03:00
parent 6a827c0188
commit d165f8d384

View File

@ -2,6 +2,7 @@ stages:
- build - build
- deploy-dev - deploy-dev
- deploy-prod - deploy-prod
- push-runner
build: build:
stage: build stage: build
@ -51,5 +52,15 @@ deploy-prod:
TELEGRAM_TOKEN: "$TELEGRAM_TOKEN_PROD" TELEGRAM_TOKEN: "$TELEGRAM_TOKEN_PROD"
script: script:
- docker stack deploy -c ./.deploy/deploy-prod.yaml sprint - docker stack deploy -c ./.deploy/deploy-prod.yaml sprint
push-runner:
extends:
- .deploy
stage: push-runner
tags:
- prod
only:
- master
script:
- docker build -t mathwave/sprint-runner . - docker build -t mathwave/sprint-runner .
- docker push mathwave/sprint-runner - docker push mathwave/sprint-runner