Skip to content

Commit

Permalink
Adding Heroku deploy action (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswedgwood authored Aug 11, 2024
1 parent 77edc32 commit 966e572
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/heroku-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Push Container to Heroku

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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

0 comments on commit 966e572

Please sign in to comment.