-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 946 Bytes
/
fly.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
name: Fly Deploy
on:
push:
branches:
- master
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
build:
name: Build image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl auth docker
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: true
tags: registry.fly.io/andridk:${{ github.sha }}
build-args: |
DIRECTUS_API_TOKEN=${{ secrets.DIRECTUS_API_TOKEN }}
DIRECTUS_URL=${{ secrets.DIRECTUS_URL }}
- run: flyctl deploy --image registry.fly.io/andridk:${{ github.sha }}
# deploy:
# name: Deploy app
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: superfly/flyctl-actions/setup-flyctl@master
# - run: flyctl deploy --remote-only