Skip to content

Commit

Permalink
fix: revert jammy build, fix dynamic executable (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Jun 6, 2023
1 parent 34e74cb commit d1f507b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ builds:
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cmd/support-bundle/main.go
ldflags: -s -w
-X github.com/replicatedcom/support-bundle/pkg/version.version={{.Version}}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ _mockgen:
mockgen: _mockgen fmt

bin/analyze: $(SRC) pkg/analyze/api/v1/defaultspec/asset.go
go build \
-ldflags " \
CGO_ENABLED=0 go build \
-ldflags " -s -w \
-X $(PKG)/pkg/version.version=$(VERSION) \
-X $(PKG)/pkg/version.gitSHA=$(SHA) \
-X $(PKG)/pkg/version.buildTime=$(BUILD_TIME) \
Expand All @@ -102,8 +102,8 @@ bin/analyze: $(SRC) pkg/analyze/api/v1/defaultspec/asset.go
@echo built bin/analyze

bin/support-bundle: $(SRC) pkg/collect/bundle/defaultspec/asset.go
go build \
-ldflags " \
CGO_ENABLED=0 go build \
-ldflags " -s -w \
-X $(PKG)/pkg/version.version=$(VERSION) \
-X $(PKG)/pkg/version.gitSHA=$(SHA) \
-X $(PKG)/pkg/version.buildTime=$(BUILD_TIME) \
Expand Down
2 changes: 1 addition & 1 deletion deploy/Dockerfile-base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim
FROM debian:buster-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install --no-install-recommends -y \
ca-certificates \
Expand Down

0 comments on commit d1f507b

Please sign in to comment.