ci: build.yml alleen handmatig (server bouwt zelf)
This commit is contained in:
parent
daeb159ad6
commit
2444067c5c
1 changed files with 13 additions and 8 deletions
|
|
@ -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.
|
# UITGESCHAKELD voor automatische runs. Deze server bouwt zelf via
|
||||||
# Bakt de tag in als SU_VERSION zodat het image z'n eigen versie kent.
|
# 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 → Variables → REGISTRY=git.example.com, OWNER=bes-r
|
||||||
# Settings → Secrets → PACKAGE_TOKEN=<token met write:package scope>
|
# Settings → Secrets → PACKAGE_TOKEN=<token met write:package scope>
|
||||||
|
|
||||||
name: Build and push image
|
name: Build and push image (handmatig)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue