From 2444067c5c63f9851f3dbf0a33b6cf37cccd986f Mon Sep 17 00:00:00 2001 From: bes-r Date: Tue, 2 Jun 2026 23:48:15 +0200 Subject: [PATCH] ci: build.yml alleen handmatig (server bouwt zelf) --- .forgejo/workflows/build.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 5a0d3eb..1b2a00a 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -1,18 +1,23 @@ -# Forgejo Actions — bouw + push image bij elke tag-push +# Forgejo Actions — bouw + push image NAAR DE REGISTRY (optioneel, handmatig) # -# Activeert wanneer je `git push --tags` doet met een v*-tag. -# Bakt de tag in als SU_VERSION zodat het image z'n eigen versie kent. +# UITGESCHAKELD voor automatische runs. Deze server bouwt zelf via +# deploy-prod.yml / deploy.yml (rsync + `docker compose build`), dus een +# registry-push is niet nodig. Stond dit op `push: tags: v*`, dan bleef de job +# hangen omdat hij een runner met label `docker` zoekt die niet bestaat — +# dat veroorzaakte de eindeloos "building" run in de Actions-tab. # -# Vereisten in Forgejo: +# Wil je tóch naar de Forgejo container-registry publiceren: start deze workflow +# handmatig via de Actions-tab (Run workflow) en zorg dat er een runner met +# label `docker` bestaat (of pas `runs-on` aan naar je eigen runner-label). +# +# Vereisten (alleen voor handmatige runs): # Settings → Variables → REGISTRY=git.example.com, OWNER=bes-r # Settings → Secrets → PACKAGE_TOKEN= -name: Build and push image +name: Build and push image (handmatig) on: - push: - tags: - - "v*" + workflow_dispatch: jobs: build: