merge: take new site over old single-page version
Some checks are pending
/ deploy (push) Waiting to run
Some checks are pending
/ deploy (push) Waiting to run
This commit is contained in:
commit
90a5702cbf
2 changed files with 28 additions and 0 deletions
25
.forgejo/workflows/deploy.yml
Normal file
25
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Restart Nomad allocation
|
||||||
|
env:
|
||||||
|
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
|
||||||
|
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
ALLOC_ID=$(curl -sf \
|
||||||
|
-H "X-Nomad-Token: $NOMAD_TOKEN" \
|
||||||
|
"$NOMAD_ADDR/v1/jobs/thefatdragon/allocations" \
|
||||||
|
| grep -o '"ID":"[^"]*"' | head -1 | cut -d'"' -f4)
|
||||||
|
echo "Restarting allocation: $ALLOC_ID"
|
||||||
|
curl -sf -X POST \
|
||||||
|
-H "X-Nomad-Token: $NOMAD_TOKEN" \
|
||||||
|
"$NOMAD_ADDR/v1/client/allocation/$ALLOC_ID/restart"
|
||||||
|
echo "Deploy triggered — nginx will re-fetch index.html from git."
|
||||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# website
|
||||||
|
|
||||||
|
The Fat Dragon website — static HTML
|
||||||
Loading…
Add table
Add a link
Reference in a new issue