Skip to content

Commit

Permalink
Initial release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed Dec 5, 2022
0 parents commit 7b18bd6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
release:
types: [published]

jobs:
heroku-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Log into Heroku Container Registry
env:
HEROKU_API_KEY: ${{ secrets.HerokuApiToken }}
run: heroku container:login
- name: Build "release" image
run: docker buildx build -t registry.heroku.com/intercode/web
--build-arg LISTMONK_TAG=v2.3.0
--push
.
- name: Release app to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HerokuApiToken }}
run: heroku container:release -a ${{ secrets.HerokuAppName }} web
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ARG LISTMONK_TAG
FROM listmonk/listmonk:$LISTMONK_TAG

0 comments on commit 7b18bd6

Please sign in to comment.