Update .gitea/workflows/backend.yml
This commit is contained in:
@@ -8,6 +8,7 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- "backend/**"
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -22,10 +23,14 @@ jobs:
|
||||
# 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 "${{ github.token }}" | docker login gitea.lan:3001 -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/arm64 \
|
||||
-t babymonitor-backend:latest \
|
||||
-t gitea.lan:3001/jacobh2/babymonitor:backend-latest \
|
||||
./backend \
|
||||
--load
|
||||
|
||||
Reference in New Issue
Block a user