diff options
| author | hermes <hermes@voidlaptop> | 2026-09-22 15:46:22 +0100 |
|---|---|---|
| committer | hermes <hermes@voidlaptop> | 2026-09-22 15:46:22 +0100 |
| commit | e71d3f17e33ab93e652bfadb7d97d56b1c672c87 (patch) | |
| tree | 94c07746b9b7c5c13c7d5a2a066e419df34ca36f | |
| parent | f8fca9518e2d92cba2dbcd3ab71ebc00f2e22dc6 (diff) | |
| -rwxr-xr-x | deploy-docker.sh | 5 | ||||
| -rwxr-xr-x | deploy.sh | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/deploy-docker.sh b/deploy-docker.sh index f6ad4b4..2e72954 100755 --- a/deploy-docker.sh +++ b/deploy-docker.sh @@ -57,6 +57,11 @@ cp cv/index.txt public/cv.txt cp -r assets/* public/ cp -r assets/* public/assets/ +# nginx maps curl/wget UAs to .txt, so `curl https://jayrup.me/public_key` +# resolves to /public_key.txt. Single source of truth stays assets/public_key; +# browsers keep getting the suffixless /public_key. +cp assets/public_key public/public_key.txt + # Deploy status marker — site-visible proof of the last successful deploy printf 'deployed %s commit %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$SHORT_SHA" > public/last-deploy.txt @@ -40,6 +40,10 @@ mkdir -p public/assets cp -r assets/* public/ cp -r assets/* public/assets/ +# .txt twin: curl/wget UAs map to .txt, so `curl https://jayrup.me/public_key` +# resolves to public_key.txt. Source of truth stays assets/public_key. +cp assets/public_key public/public_key.txt + # 6. Deploy marker printf 'deployed %s commit %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$(git rev-parse --short HEAD)" > public/last-deploy.txt |
