Automate production deployment on main pushes
Deploy production / deploy (push) Successful in 3s

This commit is contained in:
Labyricorn Deployment
2026-08-11 20:44:14 -07:00
parent 089589f8c4
commit 5b17b52e3f
2 changed files with 85 additions and 12 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Deploy production
on:
push:
branches:
- main
concurrency:
group: labyricorn-production
cancel-in-progress: false
jobs:
deploy:
runs-on: labyricorn-deploy
timeout-minutes: 10
steps:
- name: Build and activate current main
run: sudo -n /usr/local/bin/deploy-labyricorn
- name: Verify the deployed revision and origin
run: |
deployed_revision="$(cat /srv/labyricorn/current/.labyricorn-commit)"
test "$deployed_revision" = "$GITHUB_SHA"
curl --fail --silent --show-error \
-H 'Host: www.labyricorn.com' \
-H 'X-Forwarded-Proto: https' \
http://127.0.0.1/ >/dev/null