Files
babymonitor/.gitea/workflows/backend.yml
T

37 lines
923 B
YAML

name: Build Backend
defaults:
run:
shell: sh
on:
push:
paths:
- "backend/**"
workflow_dispatch: {}
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: Log in to Gitea Container Registry
# This uses the automated token provided natively by Gitea Actions
run: echo "${{ secrets.babymonitor_cicd }}" | docker login gitea.lan -u ${{ github.actor }} --password-stdin
- name: Build Docker image
run: |
docker buildx build \
--platform linux/arm64 \
-t gitea.lan/jacobh2/babymonitor:backend-latest \
./backend \
--push