Files
questions/.gitea/workflows/deploy.yml
T
blandClaude Opus 5.5 93c6b6e6c5
Deploy test instance / deploy (push) Failing after 1s
lint-and-reload / lint (push) Failing after 1s
Test: portal.test.klingenbergbygg.no, nyeste portal og en egen NATS; søknad på pause
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
2026-09-30 20:11:30 +02:00

26 lines
732 B
YAML

name: Deploy test instance
# Branch `test` is portal.test.klingenbergbygg.no: the newest portal
# release (cut from uhhm/portal main), with a NATS of its own on kasse,
# so nothing tried here reaches production or mails a customer. The
# production site is branch `main`, pinned in its own deploy.yml.
on:
workflow_dispatch:
push:
branches: [test]
paths:
- .gitea/workflows/deploy.yml
env:
INSTANCE: klingenberg-test
jobs:
deploy:
runs-on: fish
steps:
- name: Ship the newest release and restart
run: |
tag=$(curl -sf https://project.uhhm.no/api/v1/repos/uhhm/portal/releases/latest | jq -r .tag_name)
sudo /usr/local/bin/deploy-portal-instance "$INSTANCE" "$tag"