Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ jobs:
- id: deployment
uses: actions/deploy-pages@v4


- name: HTTP must redirect to HTTPS
run: |
for attempt in 1 2 3 4 5 6; do
location=$(curl -sI http://opentaberna.de/ | tr -d '\r' | awk 'tolower($1)=="location:"{print $2}')
[ "$location" = "https://opentaberna.de/" ] && exit 0
sleep 10
done
echo "http://opentaberna.de/ redirects to '${location}', expected https://opentaberna.de/"
exit 1
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ project-specific structural checks.
Pushes to `main` run `.github/workflows/deploy.yml`. The workflow verifies the
site before it uploads and deploys the GitHub Pages artifact. Pages must use
**GitHub Actions** as its source, with the custom domain `opentaberna.de` and
**Enforce HTTPS** enabled.
**Enforce HTTPS** enabled. After each deploy the workflow checks that
`http://opentaberna.de/` redirects to HTTPS and fails if it does not.

The repository's `CNAME` file is in place. The apex and `www` DNS records can
therefore be added as documented in the project issue; the `wiki` subdomain is
Expand Down
Loading