Skip to content

Installer endpoint health #138

Installer endpoint health

Installer endpoint health #138

name: Installer endpoint health
on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
smoke-test:
name: Smoke test get.roomote.dev
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: Verify installer endpoints
shell: bash
run: |
set -euo pipefail
installer="$(curl -fsSL --retry 3 https://get.roomote.dev)"
grep -Fq '# Roomote one-command installer' <<< "$installer"
install_sh="$(curl -fsSL --retry 3 https://get.roomote.dev/install.sh)"
grep -Fq '# Roomote one-command installer' <<< "$install_sh"
latest="$(curl -fsSL --retry 3 https://get.roomote.dev/latest-version)"
grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+' <<< "$latest"
caddyfile="$(curl -fsSL --retry 3 https://get.roomote.dev/raw/develop/deploy/caddy/Caddyfile)"
grep -Fq 'reverse_proxy' <<< "$caddyfile"
status="$(curl -sS -o /dev/null -w '%{http_code}' https://get.roomote.dev/raw/develop/README.md)"
test "$status" = "404"