Update deploy steps

This commit is contained in:
Ramon Wenger 2022-05-17 15:05:39 +02:00
parent fec8022f0f
commit 782cb50f92
1 changed files with 118 additions and 131 deletions

View File

@ -20,9 +20,7 @@ definitions:
npm: $HOME/.npm
cypress: $HOME/.cache/Cypress
clientmodules: client/node_modules
aliases:
steps:
- &lint
name: lint
caches:
@ -114,12 +112,6 @@ aliases:
trigger: manual
script:
- git push --force https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-dev.git HEAD:master
- &deploy-academy-manual
name: deploy to iterativ-academy on Heroku
deployment: academy-stage
trigger: manual
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/iterativ-academy.git HEAD:master
- &deploy-academy
name: deploy to iterativ-academy on Heroku
deployment: academy-stage
@ -130,17 +122,19 @@ aliases:
deployment: stage
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master
- &deploy-prod-manual
name: deploy to skillbox-prod on Heroku
deployment: prod
- &deploy-preprod-manual
name: deploy to prod environments on heroku
trigger: manual
deployment: preprod
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-preprod.git master:master
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/my-kv-preprod.git master:master
- &deploy-prod-manual
name: deploy to prod environments on heroku
trigger: manual
deployment: prod
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-prod.git HEAD:master
- &deploy-my-kv-prod-manual
name: deploy to my-kv-prod on Heroku
deployment: my-kv-prod
trigger: manual
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/my-kv-prod.git HEAD:master
pipelines:
@ -158,7 +152,9 @@ pipelines:
- parallel:
- step: *unittest-python
- step: *cypress-test
- step: *frontend-test
- step: *jest-test
- step: *deploy-preprod-manual
develop:
- parallel:
@ -170,6 +166,7 @@ pipelines:
- parallel:
- step: *deploy-stage
- step: *deploy-academy
- step: *deploy-preprod-manual
tags:
v202*:
@ -177,19 +174,9 @@ pipelines:
- step: *unittest-python
- step: *cypress-test
- step: *jest-test
- parallel:
- step: *deploy-prod-manual
- step: *deploy-my-kv-prod-manual
custom:
prod:
- parallel:
- step: *unittest-python
- step: *cypress-test
- step: *jest-test
- parallel:
- step: *deploy-prod-manual
cypress-parallel:
- parallel:
- step: *frontend-test-parallel