Files
babymonitor/.gitea/workflows/backend.yml
T
jacobh2 0ca64b9b5d
Build Frontend / build (push) Has been cancelled
Build Backend / build (push) Has been cancelled
Use buildx
2026-05-29 16:21:40 +02:00

32 lines
639 B
YAML

name: Build Backend
defaults:
run:
shell: sh
on:
push:
paths:
- "backend/**"
jobs:
build:
runs-on: host
steps:
- name: Install Git and Docker CLI
run: apk add --no-cache git docker-cli docker-cli-buildx
- name: Checkout
uses: actions/checkout@v3
with:
# Tells the action to use the local 'git' binary we just installed
set-safe-directory: 'true'
- name: Build Docker image
run: |
docker buildx build \
--platform linux/arm64 \
-t babymonitor-backend:latest \
./backend \
--load