-
Notifications
You must be signed in to change notification settings - Fork 14
62 lines (51 loc) · 1.43 KB
/
deployment.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
55
56
57
58
59
60
61
62
name: Deploy application
on:
push:
branches:
- master
paths-ignore:
- '**.md'
- '**.*ignore'
- '**.env*'
- renovate.json
- docker-compose.yaml
- '**integration.yaml'
concurrency:
group: deployment-${{ github.ref }}
cancel-in-progress: false
jobs:
deployment:
name: Perform deployment
runs-on: ubuntu-22.04
permissions: read-all
environment:
name: production
url: http://discord.gg/7Guzz9e
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Heroku
uses: akhileshns/heroku-deploy@v3.13.15
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ''
heroku_email: ${{secrets.HEROKU_EMAIL}}
justlogin: true
- name: Login to Heroku Container Registry
run: heroku container:login
- name: Build Docker image
uses: docker/build-push-action@v5
with:
push: true
provenance: false
tags: registry.heroku.com/codinglab-discord-bot/worker
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Deploy Docker image
run: heroku container:release worker --app codinglab-discord-bot