Scaffold enligt new-project-playbook: README, plan, CI-workflow, build-task
Some checks failed
build-and-push / build (push) Failing after 46s
Some checks failed
build-and-push / build (push) Failing after 46s
lyssnarr — musik-discovery på Pi5. Jellyseerr-lik UI, sök (MusicBrainz + YT Music), schemalagda Gemini-förslag från Lidarr-bibliotek + Youtubarr- spellistor, add-to-Lidarr / spela inline / öppna i YT Music. Plan i doc/plan.md — implementation börjar när planen är bekräftad. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01824ZrvG2mDYYrmwqypLNup
This commit is contained in:
38
.gitea/workflows/build.yaml
Normal file
38
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: build-and-push
|
||||
|
||||
# Bygger lyssnarr-imagen på Pi5-runnern (arm64, nativt) och pushar till den
|
||||
# lokala registryn — samma mönster som Archivum. Multi-stage (frontend ->
|
||||
# backend -> runtime), build-context är repo-roten. Pull:a på Pi5 med
|
||||
# localhost:5000/lyssnarr:latest (dockge-stacken).
|
||||
#
|
||||
# OBS: bygget kör bredvid live-tjänsterna på Pi5 — nice/ionice + BUILD_CPUS=2
|
||||
# så boxen förblir responsiv (max 2 tunga byggen samtidigt, se infra-Doc).
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths:
|
||||
- "backend/**"
|
||||
- "frontend/**"
|
||||
- "docker/**"
|
||||
- "package.json"
|
||||
- ".gitea/workflows/build.yaml"
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build & push image
|
||||
run: |
|
||||
nice -n 19 ionice -c 3 docker build --progress=plain \
|
||||
--build-arg BUILD_CPUS=2 \
|
||||
-f docker/Dockerfile \
|
||||
-t localhost:5000/lyssnarr:latest \
|
||||
-t "localhost:5000/lyssnarr:${GITHUB_SHA::12}" \
|
||||
.
|
||||
docker push localhost:5000/lyssnarr:latest
|
||||
docker push "localhost:5000/lyssnarr:${GITHUB_SHA::12}"
|
||||
Reference in New Issue
Block a user