Fix CI/CD: export APP_VERSION before docker-compose build
Ensures APP_VERSION is available as an environment variable when docker-compose starts, so containers pick up the correct version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1
.github/workflows/ci-cd.yml
vendored
1
.github/workflows/ci-cd.yml
vendored
@@ -183,6 +183,7 @@ jobs:
|
||||
|
||||
# Build and start containers from source code
|
||||
echo "🔨 Building and starting containers from source code..."
|
||||
export APP_VERSION=$(cat VERSION 2>/dev/null || echo "unknown")
|
||||
docker-compose -f compose.yml up -d --build
|
||||
|
||||
# Wait for containers to be ready
|
||||
|
||||
Reference in New Issue
Block a user