fix: VERSION généré par build.sh avant docker build (pas dans Dockerfile)
CI / lint (push) Failing after 13s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 13s

- build.sh: git describe --tags --dirty > backend/VERSION avant docker compose build
- Dockerfile: COPY backend/VERSION (pré-généré, plus fiable que .git dans le contexte)
- .dockerignore: revert (plus besoin d'autoriser .git/HEAD)
- .gitignore: backend/VERSION (généré, pas commité)
This commit is contained in:
2026-07-27 17:19:09 -04:00
parent 9d91da6656
commit efb59230e7
4 changed files with 8 additions and 17 deletions
+5
View File
@@ -193,6 +193,11 @@ else
info "Construction de l'image Docker (avec cache)..."
fi
# Generate VERSION file from git before Docker build
VERSION=$(git describe --tags --dirty 2>/dev/null | sed 's/^v//' || echo "0.0.0-dev")
echo "$VERSION" > backend/VERSION
info "Version: $VERSION"
$COMPOSE_CMD -f "$COMPOSE_FILE" build "${BUILD_FLAGS[@]}" "${BUILD_ARGS[@]}"
ok "Image construite avec succès"