Skip to content

Commit

Permalink
[LAB-715] Also build backend container (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
alabdao committed Oct 20, 2023
1 parent c2fa8dd commit 8434a79
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Workflow to build backend/gateway container
---

name: backend

on:
push:
branches: ["main"]
paths-ignore:
- 'docs/**'
- 'infrastructure/**'

pull_request:
branches: ["main"]
paths-ignore:
- 'docs/**'
- 'infrastructure/**'

# Only run one at a time
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: quay.io/labdao/backend

- name: Login to quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.LABDAO_QUAY_USERNAME }}
password: ${{ secrets.LABDAO_QUAY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
cache-from: |
quay.io/labdao/backend:main
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 2 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
NEXT_PUBLIC_IPFS_GATEWAY_ENDPOINT: ${{ matrix.backends.gateway }}
uses: docker/build-push-action@v5
with:
cache-from: |
quay.io/labdao/frontend:main-${{ matrix.backends.env }}
build-args: |
NEXT_PUBLIC_BACKEND_URL=${{ matrix.backends.url }}
NEXT_PUBLIC_PRIVY_APP_ID
Expand Down

0 comments on commit 8434a79

Please sign in to comment.