This commit is contained in:
Administrator
2022-08-13 14:59:00 +03:00
commit 47f71fb20f
5 changed files with 113 additions and 0 deletions

24
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,24 @@
stages:
- deploy-dev
- deploy-prod
deploy-dev:
stage: deploy-dev
tags:
- demo
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- when: manual
script:
- docker stack deploy -c ./.deploy/deploy-dev.yaml infra
deploy-prod:
stage: deploy-prod
tags:
- main
only:
- master
when: manual
script:
- docker stack deploy -c ./.deploy/deploy-prod.yaml infra