14 Commits

Author SHA1 Message Date
Michael Czechowski
fa35579609 chore(bump-stacks): drop run_number input — informational, never read 2026-05-05 11:18:31 +02:00
Michael Czechowski
7c2ba75c36 fix(bump-stacks): extract bun edit script to bump.js (heredoc was busted)
The inline 'cat > /tmp/bump.js <<JS' heredoc died because Gitea Actions
indents the entire run: block, and the closing 'JS' marker for an
unquoted heredoc must sit at column zero. The script never reached
disk and the action exited on a syntax error.

Move the editor into bump.js next to action.yml, reference it via
${{ github.action_path }}.
2026-05-05 01:11:15 +02:00
f1ac88259b feat(actions): add bump-stacks and deploy-stack composite actions
bump-stacks: invoked by stack-repo CI after a successful image push.
Clones libretech/gitops-sandbox, mutates stacks.yml to pin the new
short sha for the named stack, commits + pushes back. Idempotent —
exits 0 with a no-op notice when the sha is already pinned. Retries
up to 3× on non-fast-forward to absorb concurrent bumps.

deploy-stack: invoked by stack-repo deploy.yml (workflow_dispatch).
SSHes to netcup with a stack-scoped key, writes a .env.deploy file
pinning <STACK>_IMAGE, runs 'compose pull && compose up -d'. Writes
/srv/<stack>/.deployed for drift checks.
2026-05-05 00:36:17 +02:00
b2109e7937 fix(ci): move build-template.yml out of .gitea/workflows/
The file was a copy-paste template for libreshop component repos but
lived in .gitea/workflows/ — so Gitea auto-ran it against this repo
on every push, failing because there is no Dockerfile here. Every
push to main has been red since the template was committed.

Move to examples/ and document why it cannot live in .gitea/workflows/.
2026-05-04 23:49:06 +02:00
373b1953a2 ci: bump runner-image pin v0.1.0 → v0.2.0 (#1)
Some checks failed
build / build (push) Failing after 6s
Co-authored-by: Michael Czechowski <mail@dailysh.it>
Co-committed-by: Michael Czechowski <mail@dailysh.it>
2026-05-04 23:45:52 +02:00
65537fded2 fix(ci): correct image digest separator
Some checks failed
build / build (push) Failing after 4s
2026-04-30 12:20:31 +02:00
ad47786fc3 ci: digest-pin runner-image v0.1.0
Some checks failed
build / build (push) Failing after 0s
2026-04-30 12:17:53 +02:00
3a43a8aa3c ci: update runner-image path to public/ namespace
Some checks failed
build / build (push) Failing after 1s
2026-04-30 11:54:53 +02:00
d1fec747a0 chore: update action ref to public/actions after org transfer
Some checks failed
build / build (push) Failing after 6s
2026-04-29 22:55:19 +02:00
6c25680fe1 fix: use https:// prefix in template (required for self-hosted Gitea)
Some checks failed
build / build (push) Failing after 6s
2026-04-29 21:56:00 +02:00
bdba35b804 fix: rewrite composite action using shell only (act_runner nested uses limitation)
Some checks failed
build / build (push) Failing after 3s
2026-04-29 21:49:59 +02:00
f0656c8f02 fix: use full Gitea URL in template (cross-repo resolution)
Some checks failed
build / build (push) Failing after 1s
2026-04-29 21:46:43 +02:00
b5d1cfd28d fix: add buildx setup, match tag/latest behavior, add PR trigger
Some checks failed
build / build (push) Failing after 1s
2026-04-29 21:25:45 +02:00
e131f1d208 feat: add docker-build composite action and build template
Some checks failed
build / build (push) Failing after 2s
2026-04-29 21:24:18 +02:00