GULLBERG sanatorium: første utkast, bygget av treneren
Deploy instance / deploy (push) Failing after 0s
lint-and-reload / lint (push) Failing after 2s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
This commit is contained in:
blandClaude Opus 5.5 committed 2026-10-01 07:36:15 +02:00
commit bbec51f476
45 files changed
+2306

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
name: Deploy instance
# This content repo owns its portal instance: which portal version runs
# on kasse for gullberg.klingenbergbygg.no. PORTAL_RELEASE pins it, so
# every rollout is a commit, revertable by reverting it. Content-only
# changes go through lint-and-reload instead.
#
# The one root action the runner may take is
# /usr/local/bin/deploy-portal-instance, which checks the instance
# against a fixed list and the tag against a release-tag shape.
on:
workflow_dispatch:
push:
branches: [main]
paths:
- .gitea/workflows/deploy.yml
env:
PORTAL_RELEASE: v0.6.10
INSTANCE: gullberg-portal
jobs:
deploy:
runs-on: fish
steps:
- name: Ship the pinned release and restart
run: sudo /usr/local/bin/deploy-portal-instance "$INSTANCE" "$PORTAL_RELEASE"
+22
View File
@@ -0,0 +1,22 @@
name: lint-and-reload
on:
push:
branches: [main]
jobs:
lint:
runs-on: fish
steps:
- name: checkout
run: |
rm -rf checkout && git clone --depth 1 https://prosjekt.klingenbergbygg.no/klingenbergbygg/gullberg.git checkout
# The lint is portal itself, at the version this site runs
# (PORTAL_RELEASE in deploy.yml).
- name: lint
env:
PORTAL_RELEASE: v0.6.10
run: |
curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/$PORTAL_RELEASE/portal-x86_64-linux" -o portal && chmod +x portal
./portal lint --path checkout/questions
# Gullberg's own NATS, never the one the other sites share.
- name: reload
run: nats --server nats://127.0.0.1:4233 pub portal.content.reload ""