-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (55 loc) · 2.02 KB
/
docker.yml
File metadata and controls
70 lines (55 loc) · 2.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build Discover Mesic Back and front
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
- main
jobs:
build-and-deploy-back:
name: Build and Deploy Back-end
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build, Push and Release a Backend Docker container to Heroku.
uses: gonuit/heroku-docker-deploy@v1.3.3 # GitHub action name (leave it as it is).
with:
# The email address associated with your Heroku account
email: ${{ secrets.HEROKU_EMAIL }}
# Heroku API key associated with provided user's email.
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
# Name of the heroku application to which the build is to be sent.
heroku_app_name: ${{ secrets.HEROKU_APP_BACK }}
# Dockerfile directory.
dockerfile_directory: ./api
# (Optional, default: "")
# Additional options of docker build command.
docker_options: "--no-cache"
# (Optional, default: "web")
process_type: web
build-and-deploy-front:
name: Build and Deploy Front-end
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build, Push and Release a Frontend Docker container to Heroku.
uses: gonuit/heroku-docker-deploy@v1.3.3 # GitHub action name (leave it as it is).
with:
# The email address associated with your Heroku account
email: ${{ secrets.HEROKU_EMAIL }}
# Heroku API key associated with provided user's email.
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
# Name of the heroku application to which the build is to be sent.
heroku_app_name: ${{ secrets.HEROKU_APP_FRONT }}
# Dockerfile directory.
dockerfile_directory: ./app
# (Optional, default: "")
# Additional options of docker build command.
docker_options: "--no-cache"
# (Optional, default: "web")
process_type: web