This commit is contained in:
Administrator 2022-08-16 21:56:57 +03:00
parent 133e783887
commit e0b640a4d1

View File

@ -1,18 +1,7 @@
stages:
- build
- deploy-dev
- deploy-prod
build:
stage: build
tags:
- dev
script:
- echo $CI_RUNNER_SHORT_TOKEN
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
- docker build -t mathwave/sprint-repo:gitlab-runner gitlab-runner
- docker push mathwave/sprint-repo:gitlab-runner
deploy-dev:
stage: deploy-dev
tags:
@ -27,7 +16,7 @@ deploy-dev:
deploy-prod:
stage: deploy-prod
tags:
- main
- prod
only:
- master
when: manual