-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.41 KB
/
deploy-gatekeeper.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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy Gatekeeper to Heroku
on:
workflow_dispatch:
push:
branches:
- master
env:
galaxy_app: td-galaxy
gatekeeper_app: td-gatekeeper
jobs:
deploy-gatekeeper:
name: Deploy Gatekeeper to heroku
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[deploy-gatekeeper]') || github.event_name == 'workflow_dispatch'"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Checkout Secrets
uses: actions/checkout@v2
with:
repository: tamu-datathon-org/secrets
token: ${{ secrets.REPO_PAT }}
path: secrets
- name: Copy Secrets
run: |
cp secrets/gatekeeper.env.production gatekeeper/.env.prod
ls -la gatekeeper/
- 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 Gatekeeper container
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push web --app=${{ env.gatekeeper_app }}
working-directory: ./gatekeeper/
- name: Release Gatekeeper container
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release web --app=${{ env.gatekeeper_app }}
working-directory: ./gatekeeper/