The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: brand version number into binary

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 0007f3b2 4a4f742a

+11 -7
+2 -2
cmd/xesite/api.go
··· 2 2 3 3 import ( 4 4 "context" 5 - "os" 6 5 "os/exec" 7 6 "runtime" 8 7 "strings" 9 8 10 9 "github.com/twitchtv/twirp" 11 10 "google.golang.org/protobuf/types/known/timestamppb" 11 + xesite "xeiaso.net/v4" 12 12 pb "xeiaso.net/v4/gen/xeiaso/net/v1" 13 13 "xeiaso.net/v4/internal/lume" 14 14 ) ··· 39 39 Commit: commit, 40 40 GoVersion: runtime.Version(), 41 41 DenoVersion: denoVersion, 42 - XesiteVersion: os.Args[0], 42 + XesiteVersion: xesite.Version, 43 43 BuildTime: timestamppb.New(ms.fs.BuildTime()), 44 44 } 45 45
+1 -1
docker/patreon-saasproxy.Dockerfile
··· 11 11 RUN go mod download 12 12 13 13 COPY . . 14 - RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags "all=-N -l" -o /app/bin/patreon-saasproxy ./cmd/patreon-saasproxy 14 + RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -ldflags="-X xeiaso.net/v4.Version=$(git describe --tags --always --dirty)" -gcflags "all=-N -l" -o /app/bin/patreon-saasproxy ./cmd/patreon-saasproxy 15 15 16 16 FROM alpine:${ALPINE_VERSION} AS run 17 17 WORKDIR /app
+1 -1
docker/sponsor-panel.Dockerfile
··· 17 17 && cd ./cmd/sponsor-panel \ 18 18 && go generate ./... 19 19 20 - RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags "all=-N -l" -o /app/bin/sponsor-panel ./cmd/sponsor-panel 20 + RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -ldflags="-X xeiaso.net/v4.Version=$(git describe --tags --always --dirty)" -gcflags "all=-N -l" -o /app/bin/sponsor-panel ./cmd/sponsor-panel 21 21 22 22 FROM alpine:${ALPINE_VERSION} AS run 23 23 WORKDIR /app
+1 -1
docker/xesite.Dockerfile
··· 13 13 RUN go mod download 14 14 15 15 COPY . . 16 - RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags "all=-N -l" -o /app/bin/xesite ./cmd/xesite 16 + RUN --mount=type=cache,target=/root/.cache GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -ldflags="-X xeiaso.net/v4.Version=$(git describe --tags --always --dirty)" -gcflags "all=-N -l" -o /app/bin/xesite ./cmd/xesite 17 17 18 18 # 19 19 # Images for various facets of xesite
+3 -2
manifest/kustomization.yaml
··· 1 1 resources: 2 - #- patreon-saasproxy 2 + - patreon-saasproxy 3 + - sponsor-panel 3 4 - xesite 4 5 5 - namespace: default 6 + namespace: default
+3
xesite.go
··· 1 + package xesite 2 + 3 + var Version = "development"