From 8ced50471224a98481c02bccafc76169f65ceb42 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 8 Mar 2026 13:55:37 +1300 Subject: [PATCH] Embed build date in setup-remote.sh during CI publish --- .gitea/workflows/build-publish.yaml | 4 +++- setup-remote.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-publish.yaml b/.gitea/workflows/build-publish.yaml index 7299b2a..7c216d8 100644 --- a/.gitea/workflows/build-publish.yaml +++ b/.gitea/workflows/build-publish.yaml @@ -108,7 +108,9 @@ jobs: SOS_WRITE_TOKEN: ${{ secrets.SOS_WRITE_TOKEN }} run: | if [ "$GITHUB_REF" = "refs/heads/main" ]; then + BUILD_DATE=$(TZ=Pacific/Auckland date +"%Y-%m-%d %H:%M %Z") + sed "s|__BUILD_DATE__|${BUILD_DATE}|g" ./setup-remote.sh > /tmp/setup-remote.sh curl -L -s -o /tmp/sos "https://getbin.xyz/sos:latest" chmod +x /tmp/sos - /tmp/sos upload "getbin.xyz" "./setup-remote.sh" "infmap-setup:latest" + /tmp/sos upload "getbin.xyz" "/tmp/setup-remote.sh" "infmap-setup:latest" fi diff --git a/setup-remote.sh b/setup-remote.sh index 27cf990..6863581 100755 --- a/setup-remote.sh +++ b/setup-remote.sh @@ -10,6 +10,9 @@ set -euo pipefail +BUILD_DATE="__BUILD_DATE__" +echo "infmap setup-remote (built: ${BUILD_DATE})" + # --- Args --- KEY_URL="${1:-https://getbin.xyz/infmap-pub}"