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
This commit is contained in:
4 files changed
+22
-60
No files matched your search
@@ -1,21 +1,21 @@
|
||||
name: lint-and-reload
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [test]
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: fish
|
||||
steps:
|
||||
- name: checkout
|
||||
run: |
|
||||
rm -rf checkout && git clone --depth 1 https://prosjekt.klingenbergbygg.no/klingenbergbygg/questions.git checkout
|
||||
# The lint is portal itself (`portal lint`), at the version this
|
||||
# site runs (PORTAL_RELEASE in deploy.yml).
|
||||
rm -rf checkout && git clone --depth 1 --branch test https://prosjekt.klingenbergbygg.no/klingenbergbygg/questions.git checkout
|
||||
# The lint is portal itself, at the newest release: the one the
|
||||
# test instance runs.
|
||||
- name: lint
|
||||
env:
|
||||
PORTAL_RELEASE: v0.6.3
|
||||
run: |
|
||||
curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/$PORTAL_RELEASE/portal-x86_64-linux" -o portal && chmod +x portal
|
||||
tag=$(curl -sf https://project.uhhm.no/api/v1/repos/uhhm/portal/releases/latest | jq -r .tag_name)
|
||||
curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/$tag/portal-x86_64-linux" -o portal && chmod +x portal
|
||||
./portal lint --path checkout/questions
|
||||
# The test instance's own NATS, never production's.
|
||||
- name: reload
|
||||
run: nats --server nats://127.0.0.1:4222 pub portal.content.reload ""
|
||||
run: nats --server nats://127.0.0.1:4232 pub portal.content.reload ""
|
||||
Reference in new issue
Block a user