Skip to content

Commit f7b351a

Browse files
committedApr 25, 2024
Fix build embed variable
1 parent 0f505f1 commit f7b351a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ builds:
1010
ldflags:
1111
- -s
1212
- -w
13-
- -X pkg.utils.version={{.Version}}
13+
- -X github.com/traPtitech/DevOpsBot/pkg/utils.version={{.Version}}
1414
goos:
1515
- darwin
1616
- linux

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARG TARGETARCH
1616
ENV GOOS=$TARGETOS
1717
ENV GOARCH=$TARGETARCH
1818
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
19-
go build -o /dev-ops-bot -ldflags="-s -w -X pkg.utils.version=$VERSION" .
19+
go build -o /dev-ops-bot -ldflags="-s -w -X github.com/traPtitech/DevOpsBot/pkg/utils.version=$VERSION" .
2020

2121
FROM --platform=$BUILDPLATFORM golang:1-alpine AS installer
2222

0 commit comments

Comments
 (0)
Please sign in to comment.