-
Notifications
You must be signed in to change notification settings - Fork 27
54 lines (39 loc) · 1.4 KB
/
main.yaml
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
name: Deploy to Heroku
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
env:
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: heroku registry login
run: heroku container:login
- name: build registry
run: docker build -t registry.heroku.com/ttlsh/web registry
- name: push registry
run: docker push registry.heroku.com/ttlsh/web
- name: release registry
run: heroku container:release -a ttlsh web
- name: build nginx
run: docker build -t registry.heroku.com/ttlsh/nginx nginx
- name: push nginx
run: docker push registry.heroku.com/ttlsh/nginx
- name: release nginx
run: heroku container:release -a ttlsh nginx
- name: build hooks
run: docker build -f hooks/Dockerfile.hooks -t registry.heroku.com/ttlsh-hooks/web hooks
- name: push hooks
run: docker push registry.heroku.com/ttlsh-hooks/web
- name: release hooks
run: heroku container:release -a ttlsh-hooks web
- name: build reaper
run: docker build -f hooks/Dockerfile.reap -t registry.heroku.com/ttlsh-hooks/reap hooks
- name: push reaper
run: docker push registry.heroku.com/ttlsh-hooks/reap
- name: release reaper
run: heroku container:release -a ttlsh-hooks reap