Skip to content

manually set job steps #6

manually set job steps

manually set job steps #6

Workflow file for this run

name: Heroku deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to heroku registry
run: echo "${{ secrets.HEROKU_API_KEY }}" | docker login --username=_ --password-stdin registry.heroku.com
- name: Build container
run: docker build -t registry.heroku.com/${{ secrets.HEROKU_APP_NAME }}/web -f ./apps/server/ .
- name: Push container
run: docker push registry.heroku.com/${{ secrets.HEROKU_APP_NAME }}/web
- name: Deploy to Heroku
run: heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }}