-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (45 loc) · 1.32 KB
/
release.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
44
45
46
47
48
49
50
name: Deploy to outpost/coup
on:
push:
branches: ["production"]
concurrency:
group: production_deploy
cancel-in-progress: false
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy Backend to Citadel
run: |
flyctl deploy \
-c fly.citadel.toml \
-a truncate-citadel \
--build-arg TR_COMMIT="$(git rev-parse HEAD)" \
--build-arg TR_MSG="$(git log -1 --pretty=%B | head -n 1 | sed "s/\"/'/g")" \
--build-arg TR_ENV="production" \
--remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Deploy Frontend to production
run: |
flyctl deploy \
-c fly.client.toml \
-a truncate-client \
--build-arg TR_COMMIT="$(git rev-parse HEAD)" \
--build-arg TR_MSG="$(git log -1 --pretty=%B | head -n 1 | sed "s/\"/'/g")" \
--build-arg TR_ENV="production" \
--remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}