File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy pnpm-fastify to Fly.io
2
+
3
+ on :
4
+ workflow_dispatch : {}
5
+
6
+ permissions :
7
+ id-token : write
8
+ contents : read
9
+
10
+ jobs :
11
+ deploy :
12
+ runs-on : ubuntu-22.04
13
+
14
+ env :
15
+ FLY_ACCESS_TOKEN : ${{ secrets.FLY_ACCESS_TOKEN }}
16
+
17
+ steps :
18
+ - name : Checkout code
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install flyctl
22
+ uses : superfly/flyctl-actions/setup-flyctl@master
23
+
24
+ - name : Login to Fly registry
25
+ run : flyctl auth docker
26
+
27
+ - name : Set up Depot CLI
28
+ uses : depot/setup-action@v1
29
+
30
+ - name : Build and push image
31
+ uses : depot/build-action@v1
32
+ with :
33
+ context : ./node/pnpm-fastify
34
+ platforms : linux/amd64
35
+ push : true
36
+ tag : registry.fly.io/depot-examples-pnpm-fastify:latest
37
+
38
+ - name : Deploy to Fly.io
39
+ run : flyctl deploy --image registry.fly.io/depot-examples-pnpm-fastify:latest
You can’t perform that action at this time.
0 commit comments