Skip to content

Commit

Permalink
Fix build embed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 25, 2024
1 parent 0f505f1 commit f7b351a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ builds:
ldflags:
- -s
- -w
- -X pkg.utils.version={{.Version}}
- -X github.com/traPtitech/DevOpsBot/pkg/utils.version={{.Version}}
goos:
- darwin
- linux
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG TARGETARCH
ENV GOOS=$TARGETOS
ENV GOARCH=$TARGETARCH
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
go build -o /dev-ops-bot -ldflags="-s -w -X pkg.utils.version=$VERSION" .
go build -o /dev-ops-bot -ldflags="-s -w -X github.com/traPtitech/DevOpsBot/pkg/utils.version=$VERSION" .

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

Expand Down

0 comments on commit f7b351a

Please sign in to comment.