forked from l2beat/l2beat
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.21 KB
/
deploy-backend-prod.yml
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
name: Deploy backend prod
concurrency:
group: backend-deployment-prod
permissions: {}
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
deploy-backend:
name: Deploy backend
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install heroku CLI
run: curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
- name: Login to heroku container registry
uses: docker/login-action@v3
with:
username: "_"
password: ${{ secrets.HEROKU_TOKEN }}
registry: registry.heroku.com
- name: Build and publish containers
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile.backend
build-args: |
TURBO_TEAM=${{ vars.TURBO_TEAM }}
TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
tags: |
registry.heroku.com/${{ secrets.HEROKU_BACKEND_PROD }}/web
- name: Release published containers
run: |
heroku container:release -a ${{ secrets.HEROKU_BACKEND_PROD }} -v web
env:
HEROKU_ORGANIZATION: ${{ vars.HEROKU_ORG }}
HEROKU_API_KEY: ${{ secrets.HEROKU_TOKEN }}