Skip to content

Update vercel.json #136

Update vercel.json

Update vercel.json #136

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/