-
Notifications
You must be signed in to change notification settings - Fork 5
/
deploy.sh
30 lines (25 loc) · 1.24 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cat >~/.netrc <<EOF
machine api.heroku.com
login $HEROKU_EMAIL
password $HEROKU_TOKEN
machine git.heroku.com
login $HEROKU_EMAIL
password $HEROKU_TOKEN
EOF
docker login -u _ -p "$HEROKU_TOKEN" registry.heroku.com
docker tag microhangry_core-api registry.heroku.com/microhangry-api/web
docker push registry.heroku.com/microhangry-api/web
heroku run -a microhangry-api npm run typeorm -- migration:run
heroku container:release web -a microhangry-api
docker tag microhangry_notification-service registry.heroku.com/microhangry-notification/web
docker push registry.heroku.com/microhangry-notification/web
heroku run -a microhangry-notification npm run typeorm -- migration:run
heroku container:release web -a microhangry-notification
docker tag microhangry_order-service registry.heroku.com/microhangry-order/web
docker push registry.heroku.com/microhangry-order/web
heroku run -a microhangry-order npm run typeorm -- migration:run
heroku container:release web -a microhangry-order
docker tag microhangry_preference-service registry.heroku.com/microhangry-preference/web
docker push registry.heroku.com/microhangry-preference/web
heroku run -a microhangry-preference npm run typeorm -- migration:run
heroku container:release web -a microhangry-preference