Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: Ensure correct version injection in Docker builds (Related to #1005)
rcourtman034f086d9d11
diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.ymlindex dd14b6cd45..fc534018c6 100644--- a/.github/workflows/publish-docker.yml+++ b/.github/workflows/publish-docker.yml@@ -77,6 +77,7 @@ jobs:cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/pulse:buildcachebuild-args: |PULSE_LICENSE_PUBLIC_KEY=${{ secrets.PULSE_LICENSE_PUBLIC_KEY }}+ VERSION=${{ steps.version.outputs.tag }}tags: |rcourtman/pulse:${{ steps.version.outputs.tag }}rcourtman/pulse:${{ steps.version.outputs.version }}@@ -97,6 +98,7 @@ jobs:cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/pulse-docker-agent:buildcachebuild-args: |PULSE_LICENSE_PUBLIC_KEY=${{ secrets.PULSE_LICENSE_PUBLIC_KEY }}+ VERSION=${{ steps.version.outputs.tag }}tags: |rcourtman/pulse-docker-agent:${{ steps.version.outputs.tag }}rcourtman/pulse-docker-agent:${{ steps.version.outputs.version }}diff --git a/Dockerfile b/Dockerfileindex aa8db2a555..8054a9c3f5 100644--- a/Dockerfile+++ b/Dockerfile@@ -27,6 +27,7 @@ FROM --platform=linux/amd64 golang:1.24-alpine AS backend-builderARG BUILD_AGENTARG PULSE_LICENSE_PUBLIC_KEY+ARG VERSIONWORKDIR /app# Install build dependencies@@ -51,7 +52,7 @@ COPY --from=frontend-builder /app/frontend-modern/dist ./internal/api/frontend-m# Build the main pulse binary for all target architecturesRUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \--mount=type=cache,id=pulse-go-build,target=/root/.cache/go-build \- VERSION="v$(cat VERSION | tr -d '\n')" && \+ VERSION="${VERSION:-v$(cat VERSION | tr -d '\n')}" && \BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") && \GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown") && \LICENSE_LDFLAGS="" && \@@ -72,7 +73,7 @@ RUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \# Build host-agent binaries for all platforms (for download endpoint)RUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \--mount=type=cache,id=pulse-go-build,target=/root/.cache/go-build \- VERSION="v$(cat VERSION | tr -d '\n')" && \+ VERSION="${VERSION:-v$(cat VERSION | tr -d '\n')}" && \CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \-ldflags="-s -w -X github.com/rcourtman/pulse-go-rewrite/internal/hostagent.Version=${VERSION}" \-trimpath \@@ -117,7 +118,7 @@ RUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \# Build unified agent binaries for all platforms (for download endpoint)RUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \--mount=type=cache,id=pulse-go-build,target=/root/.cache/go-build \- VERSION="v$(cat VERSION | tr -d '\n')" && \+ VERSION="${VERSION:-v$(cat VERSION | tr -d '\n')}" && \CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \-ldflags="-s -w -X main.Version=${VERSION}" \-trimpath \@@ -162,7 +163,7 @@ RUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \# Build pulse-sensor-proxy for all Linux architectures (for download endpoint)RUN --mount=type=cache,id=pulse-go-mod,target=/go/pkg/mod \--mount=type=cache,id=pulse-go-build,target=/root/.cache/go-build \- VERSION="v$(cat VERSION | tr -d '\n')" && \+ VERSION="${VERSION:-v$(cat VERSION | tr -d '\n')}" && \BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') && \GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo 'unknown') && \CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \