ci: 👷 Github actions setup, heroku deployment

Redis cache store, Production Dockerfile, Github actions workflow
This commit is contained in:
Juan Rodriguez
2021-06-14 17:14:48 -05:00
parent 54bff064d1
commit 33eb56f686
8 changed files with 114 additions and 7 deletions
+25
View File
@@ -0,0 +1,25 @@
name: Deploy production to Heroku
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Login to Heroku
run: heroku container:login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
- name: Build and push
run: heroku container:push -a $APP_NAME web
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
APP_NAME: s-shortener
- name: Release
run: heroku container:release -a $APP_NAME web
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
APP_NAME: s-shortener