Skip to content

Commit 8a01490

Browse files
Initial commit
1 parent 8176a9c commit 8a01490

File tree

7 files changed

+1113
-2
lines changed

7 files changed

+1113
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ typings/
8080

8181
# Nuxt.js build / generate output
8282
.nuxt
83-
dist
8483

8584
# Gatsby files
8685
.cache/

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
1-
# docker-compose-multiple-apps-heroku-deploy
1+
# docker-compose-multiple-apps-heroku-deploy - GitHub Action
2+
23
A simple action to build multiple docker images using docker-compose, push and deploy your apps to Heroku Applications
4+
5+
6+
## How to use it
7+
8+
```yml
9+
name: '' #set whatevername you want to your github job
10+
on: {} # set the events you would like to trigger this job
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Build, Push and Deploy to Heroku #set the whatever name you want to this step
18+
id: heroku
19+
uses: snithyanantham/docker-compose-multiple-apps-heroku-deploy@v1.0.0 # use the latest version of the action
20+
with:
21+
email: ${{ secrets.HEROKU_EMAIL }} # your heroku email
22+
api_key: ${{ secrets.HEROKU_API_KEY }} # your heroku api key
23+
docker_compose_file: './src/docker-compose.heroku.yml' # set the path to the folder where the docker-compose file is located
24+
heroku_apps: '[{"imagename":"App1","appname":"App1","apptype":"web"},{"imagename":"App2","appname":"App2","apptype":"web"},{"imagename":"App3","appname":"App2","apptype":"worker"}]' # List of Docker Image name, Heroku app and Heroku app type
25+
```
26+
27+
| Variables | Required |
28+
| ------------- |:-------------:|
29+
| email | ✅|
30+
| api_key | ✅|
31+
| docker_compose_file | ✅|
32+
| heroku_apps | ✅|

action.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Deploy Multiple Docker Images to Heroku Applications'
2+
author: 'Nithyanantham Subramaniam'
3+
description: 'A simple action to build multiple docker images using docker-compose, push and deploy your apps to Heroku Applications.'
4+
inputs:
5+
email:
6+
description: 'Email linked to your Heroku account'
7+
required: true
8+
api_key:
9+
description: 'Your Heroku API Key'
10+
required: true
11+
app_name:
12+
description: 'Your Heroku App Name'
13+
required: true
14+
docker_compose_file:
15+
description: 'docker-compose File Path'
16+
required: true
17+
heroku_apps:
18+
description: 'List of Docker Image name and Heroku app names with it's type'
19+
required: true
20+
branding:
21+
icon: package
22+
color: blue
23+
runs:
24+
using: 'node12'
25+
main: 'dist/index.js'

0 commit comments

Comments
 (0)