File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Workflow to build backend/gateway container
2
+ ---
3
+
4
+ name : backend
5
+
6
+ on :
7
+ push :
8
+ branches : ["main"]
9
+ paths-ignore :
10
+ - ' docs/**'
11
+ - ' infrastructure/**'
12
+
13
+ pull_request :
14
+ branches : ["main"]
15
+ paths-ignore :
16
+ - ' docs/**'
17
+ - ' infrastructure/**'
18
+
19
+ # Only run one at a time
20
+ concurrency :
21
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22
+ cancel-in-progress : true
23
+
24
+ jobs :
25
+ docker :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+
31
+ - name : Set up QEMU
32
+ uses : docker/setup-qemu-action@v3
33
+
34
+ - name : Set up Docker Buildx
35
+ uses : docker/setup-buildx-action@v3
36
+
37
+ - name : Docker meta
38
+ id : meta
39
+ uses : docker/metadata-action@v5
40
+ with :
41
+ images : quay.io/labdao/backend
42
+
43
+ - name : Login to quay.io
44
+ uses : docker/login-action@v3
45
+ with :
46
+ registry : quay.io
47
+ username : ${{ secrets.LABDAO_QUAY_USERNAME }}
48
+ password : ${{ secrets.LABDAO_QUAY_PASSWORD }}
49
+
50
+ - name : Build and push
51
+ uses : docker/build-push-action@v5
52
+ with :
53
+ cache-from : |
54
+ quay.io/labdao/backend:main
55
+ push : true
56
+ tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change 68
68
NEXT_PUBLIC_IPFS_GATEWAY_ENDPOINT : ${{ matrix.backends.gateway }}
69
69
uses : docker/build-push-action@v5
70
70
with :
71
+ cache-from : |
72
+ quay.io/labdao/frontend:main-${{ matrix.backends.env }}
71
73
build-args : |
72
74
NEXT_PUBLIC_BACKEND_URL=${{ matrix.backends.url }}
73
75
NEXT_PUBLIC_PRIVY_APP_ID
You can’t perform that action at this time.
0 commit comments