-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1007 Bytes
/
deploy-obos.yml
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
31
32
33
34
name: Deploy Obos to Heroku
on:
push:
branches:
- master
env:
HEROKU_APP_NAME: td-obos
jobs:
deploy-obos:
name: Deploy Obos to heroku
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[deploy-obos]')"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
- name: Login to Heroku Container registry
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:login
- name: Push Obos Container
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push -a $HEROKU_APP_NAME web
working-directory: ./Ouroboros/
- name: Release Obos Container
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release -a $HEROKU_APP_NAME web
working-directory: ./Ouroboros/