Files
roast_command_center/.gitea/workflows/deploy.yml
T
snowspeeder 0a160f0800
Test and deploy / test-and-deploy (push) Failing after 53s
Verify Actions checkout before tests
2026-07-31 06:20:53 -04:00

48 lines
1.2 KiB
YAML

name: Test and deploy
on:
push:
branches: [master]
workflow_dispatch:
concurrency:
group: roast-command-center-production
cancel-in-progress: false
jobs:
test-and-deploy:
runs-on: unraid
steps:
- name: Check out the pushed revision
uses: https://github.com/actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Verify checked-out source
run: |
pwd
test -f public/landing.html
test -f public/login.html
test -f test/auth.test.js
- name: Test
run: npm test
- name: Deploy to Unraid Docker
run: |
docker compose \
--project-name roast_command_center \
--env-file /run/roast-production.env \
-f docker-compose.yml \
up -d --build --remove-orphans
- name: Verify the running container
run: |
docker compose \
--project-name roast_command_center \
--env-file /run/roast-production.env \
-f docker-compose.yml \
exec -T app node -e "fetch('http://127.0.0.1:8090/').then((response) => process.exit(response.ok ? 0 : 1))"
curl --fail --retry 10 --retry-delay 2 https://roast.srmr.xyz/