-
Notifications
You must be signed in to change notification settings - Fork 78
40 lines (35 loc) · 1.02 KB
/
Copy pathci-docker-heroku-deploy.yml
File metadata and controls
40 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy Docker Image to Heroku
on:
workflow_dispatch:
inputs:
appName:
description: 'Heroku App Name'
required: true
type: string
imageName:
description: 'Docker Image Name'
required: true
type: string
imageTag:
description: 'Docker Image Tag'
required: true
type: string
default: 'latest'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:login
- name: Push
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push ${{ inputs.imageName }} -a ${{ inputs.appName }} --recursive --arg BASE_TAG=${{ inputs.imageTag }}
- name: Release
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release ${{ inputs.imageName }} -a ${{ inputs.appName }}