From 18a4d5a1384e37c9eea842a9f927d050869a02dd Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Fri, 10 Jul 2026 12:45:02 -0700 Subject: Publish moving edge image on master pushes Build and push ghcr.io/jhalter/mobius-hotline-server:edge on every push to master so unreleased builds can be tested without cutting a release. Pin metadata-action tags explicitly (tag ref + edge on master) so the existing latest/semver release tags are preserved, and make the Dockerfile version stamp fall back to git describe --always so non-tag builds don't produce an empty version. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 414ed9c..6f57ced 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM golang:1.25 AS builder WORKDIR /app COPY . . -RUN CGO_ENABLED=0 go build -ldflags "-X main.version=$(git describe --exact-match --tags)" -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server +RUN CGO_ENABLED=0 go build -ldflags "-X main.version=$(git describe --tags --always --dirty)" -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server FROM scratch -- cgit