-
Notifications
You must be signed in to change notification settings - Fork 94
42 lines (37 loc) · 1.12 KB
/
deploy-staging.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
name: Fly Staging Deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
on:
push:
branches:
# - main
- "fly-deploy"
jobs:
deploy:
name: 🚀 Deploy
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 👀 Read app name
uses: SebRollen/[email protected]
id: app_name
with:
file: "fly.toml"
field: "app"
# - name: 🚚 Move Dockerfile to root
# run: |
# mv ./docker/Dockerfile ./Dockerfile
- name: 🪰 Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: latest
- name: 🚀 Deploy Staging
run:
flyctl deploy -a ${{ steps.app_name.outputs.value }} -i ghcr.io/captableinc/captable:latest
# run:
# flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
# --app ${{ steps.app_name.outputs.value }}-staging
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}