Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LAB-715] Also build backend container #718

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading