Skip to content

Commit 8434a79

Browse files
authored
[LAB-715] Also build backend container (#718)
1 parent c2fa8dd commit 8434a79

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/backend.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 }}

.github/workflows/frontend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
NEXT_PUBLIC_IPFS_GATEWAY_ENDPOINT: ${{ matrix.backends.gateway }}
6969
uses: docker/build-push-action@v5
7070
with:
71+
cache-from: |
72+
quay.io/labdao/frontend:main-${{ matrix.backends.env }}
7173
build-args: |
7274
NEXT_PUBLIC_BACKEND_URL=${{ matrix.backends.url }}
7375
NEXT_PUBLIC_PRIVY_APP_ID

0 commit comments

Comments
 (0)