Skip to content

Set stack

Set stack #7

Workflow file for this run

name: Push Container to Heroku
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check Heroku Version
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku --version
- name: Set stack
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku stack:set heroku-22
- name: Login to Heroku Container registry
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:login
- name: Build and push
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push -a djangosnippets web
- name: Release
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release -a djangosnippets web