New backend based on loco #640
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: (Backend) Docker Compose Build | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- 'backend/**' | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- 'backend/**' | |
# Set default working directory | |
defaults: | |
run: | |
working-directory: ./backend # Change the working directory to /backend | |
jobs: | |
build-amd64: | |
runs-on: ubuntu-latest | |
steps: | |
- 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: Prepare for build | |
run: bash bin/install.bash | |
- name: Build Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./backend | |
file: ./backend/docker/Dockerfile | |
platforms: linux/amd64 | |
load: true | |
build-arm64: | |
runs-on: ubuntu-latest | |
steps: | |
- 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: Prepare for build | |
run: bash bin/install.bash | |
- name: Build Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./backend | |
file: ./backend/docker/Dockerfile | |
platforms: linux/arm64 | |
load: true |