Skip to content

Merge pull request #4 from Johnr24/dependabot/npm_and_yarn/backend/np… #34

Merge pull request #4 from Johnr24/dependabot/npm_and_yarn/backend/np…

Merge pull request #4 from Johnr24/dependabot/npm_and_yarn/backend/np… #34

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: .
file: ./backend/Dockerfile
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: .
file: ./frontend/Dockerfile
push: false
platforms: linux/amd64,linux/arm64
tags: splitflap-frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max