This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user