Add /version endpoint to all products + BUILD_SHA/BUILD_TIME in Dockerfiles
Some checks failed
CI — P2 Drift (Go + Node) / saas (push) Successful in 34s
CI — P2 Drift (Go + Node) / build-push (push) Failing after 4s
CI — P3 Alert / build-push (push) Failing after 3s
CI — P6 Run / saas (push) Successful in 23s
CI — P4 Portal / build-push (push) Failing after 2s
CI — P2 Drift (Go + Node) / agent (push) Successful in 17s
CI — P3 Alert / test (push) Successful in 21s
CI — P5 Cost / test (push) Successful in 24s
CI — P4 Portal / test (push) Successful in 38s
CI — P5 Cost / build-push (push) Failing after 3s
CI — P6 Run / build-push (push) Failing after 2s

This commit is contained in:
2026-03-02 13:53:15 +00:00
parent c4ec43cb76
commit 5bad2481ae
12 changed files with 30 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ for prefix in "${!SERVICES[@]}"; do
IFS=: read -r img ctx <<< "${SERVICES[$prefix]}"
TAG="${REGISTRY}/${img}:latest"
echo "$(date -u '+%H:%M:%S') Building $img..."
if docker build -t "$TAG" "./$ctx" --no-cache && docker push "$TAG"; then
if docker build -t "$TAG" --build-arg BUILD_SHA=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=$(date -u +%Y%m%dT%H%M%S) "./$ctx" --no-cache && docker push "$TAG"; then
echo "$(date -u '+%H:%M:%S')$img pushed"
((REBUILT++)) || true
else