2 Commits

Author SHA1 Message Date
adlee-was-taken
612eccf03b fix(ci): force-update tags on deploy fetch
All checks were successful
Build & Deploy Staging / build-and-deploy (release) Successful in 28s
git fetch origin won't replace a tag that already exists locally pointing
at a different commit. When v3.3.5 was force-moved on origin after a
first failed CI run, the staging runner kept the stale tag cached and
re-checked-out the old commit — the compose-env-wiring fix was never
actually applied and the container booted without LEADERBOARD_INCLUDE_TEST_DEFAULT.

--tags --force makes the behaviour safe for moved tags.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 14:02:06 -04:00
adlee-was-taken
76a9de27c2 chore(staging): wire LEADERBOARD_INCLUDE_TEST_DEFAULT into compose
All checks were successful
Build & Deploy Staging / build-and-deploy (release) Successful in 31s
The v3.3.5 router reads config.LEADERBOARD_INCLUDE_TEST_DEFAULT but the
staging compose file was never passing the env through to the container.
This change was applied manually on the staging host before but never
made it back into the repo — fixing that so CI deploys pick it up.

Value on staging is sourced from .env (already set to true). Production
leaves it unset, so the default of false applies.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 00:55:00 -04:00
3 changed files with 10 additions and 4 deletions

View File

@@ -29,8 +29,10 @@ jobs:
docker pull "$IMAGE:$TAG" docker pull "$IMAGE:$TAG"
docker tag "$IMAGE:$TAG" golfgame-app:latest docker tag "$IMAGE:$TAG" golfgame-app:latest
# Update code for compose/env changes # Update code for compose/env changes. `--tags --force` so a
git fetch origin # moved tag (hotfix on top of existing version) updates locally
# instead of silently checking out the stale cached position.
git fetch origin --tags --force
git checkout "$TAG" git checkout "$TAG"
# Restart app # Restart app

View File

@@ -21,8 +21,11 @@ jobs:
cd /opt/golfgame cd /opt/golfgame
# Pull latest code and checkout the release tag # Pull latest code and checkout the release tag. `--tags --force`
git fetch origin # so that a tag moved on origin (e.g. hotfix on top of an existing
# version) actually updates locally instead of silently reusing a
# stale cached tag position.
git fetch origin --tags --force
git checkout "$TAG" git checkout "$TAG"
# Build the image # Build the image

View File

@@ -35,6 +35,7 @@ services:
- BOOTSTRAP_ADMIN_USERNAME=${BOOTSTRAP_ADMIN_USERNAME:-} - BOOTSTRAP_ADMIN_USERNAME=${BOOTSTRAP_ADMIN_USERNAME:-}
- BOOTSTRAP_ADMIN_PASSWORD=${BOOTSTRAP_ADMIN_PASSWORD:-} - BOOTSTRAP_ADMIN_PASSWORD=${BOOTSTRAP_ADMIN_PASSWORD:-}
- MATCHMAKING_ENABLED=true - MATCHMAKING_ENABLED=true
- LEADERBOARD_INCLUDE_TEST_DEFAULT=${LEADERBOARD_INCLUDE_TEST_DEFAULT:-false}
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy