Skip to content

Commit

Permalink
build: Fix versioning
Browse files Browse the repository at this point in the history
fix copy&pasta issues. Update the correct variable during build time
  • Loading branch information
coolapso committed Nov 17, 2024
1 parent 5d62df6 commit 4d07b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG VERSION

WORKDIR /twitch-exporter
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags="-X github.com/coolapso/go-live-server/cmd.Version=${VERSION}" -a -o twitch-exporter
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags="-X github.com/coolapso/prometheus-twitch-exporter/cmd.Version=${VERSION}" -a -o twitch-exporter

FROM alpine:latest

Expand Down

0 comments on commit 4d07b82

Please sign in to comment.