Skip to content

fix: update frontend Dockerfile paths for correct build context #5

fix: update frontend Dockerfile paths for correct build context

fix: update frontend Dockerfile paths for correct build context #5

Workflow file for this run

name: Build Docker Images
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # Allow manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Backend Image
uses: docker/build-push-action@v4
with:
context: ./backend
push: false
platforms: linux/amd64,linux/arm64
tags: splitflap-backend:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build Frontend Image
uses: docker/build-push-action@v4
with:
context: ./frontend
push: false
platforms: linux/amd64,linux/arm64
tags: splitflap-frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max