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. # Every push: a test site that follows the newest release has no pin # to change, so a push is the moment to pick the newest up. on: workflow_dispatch: push: branches: [test] 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"