diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce0667b3..178d3340 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: output_name+=".exe" fi echo "Building $output_name" - GOOS=$GOOS GOARCH=$GOARCH go build -ldflags "-X github.com/Mirantis/launchpad/version.Version=${VERSION#v} -X github.com/Mirantis/launchpad/version.GitCommit=$GITHUB_SHA" -o "$output_name" ./main.go + CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH go build -trimpath -ldflags "-X github.com/Mirantis/launchpad/version.Version=${VERSION#v} -X github.com/Mirantis/launchpad/version.GitCommit=$GITHUB_SHA" -o "$output_name" ./main.go done - name: Generate checksums run: | diff --git a/.goreleaser.local.yml b/.goreleaser.local.yml deleted file mode 100644 index 77c2a496..00000000 --- a/.goreleaser.local.yml +++ /dev/null @@ -1,26 +0,0 @@ -# -# GoRelease instructions for local builds -# -project_name: launchpad -version: 2 -builds: - - env: - - CGO_ENABLED=0 - mod_timestamp: "{{ .CommitTimestamp }}" - flags: - - -trimpath - ldflags: - - -X github.com/Mirantis/launchpad/version.Environment=development - - -X github.com/Mirantis/launchpad/version.GitCommit={{ .FullCommit }} - - -X github.com/Mirantis/launchpad/version.Version={{ .Version }} - # if segment analytics is to be active, set an env variable for the token - - -X github.com/Mirantis/launchpad/pkg/analytics.SegmentToken={{ .Env.SEGMENT_TOKEN }} - binary: "{{ .ProjectName }}" - goos: - - linux - - darwin - - windows - - freebsd - goarch: - - amd64 - - arm64 diff --git a/.goreleaser.release.yml b/.goreleaser.release.yml deleted file mode 100644 index e18cff01..00000000 --- a/.goreleaser.release.yml +++ /dev/null @@ -1,32 +0,0 @@ -# -# GOReleaser instructions for build -# -# We use only the build components of goreleaser because; -# 1. we need to use digicert to sign, no option here -# 2. we would need the pro version to use the prebuilt -# option to get the signing and packaging features -# -project_name: launchpad -version: 2 -builds: - - env: - # goreleaser does not work with CGO, it could also complicate CI/CD - - CGO_ENABLED=0 - mod_timestamp: "{{ .CommitTimestamp }}" - flags: - - -trimpath - ldflags: - - -X github.com/Mirantis/launchpad/version.GitCommit={{ .FullCommit }} - - -X github.com/Mirantis/launchpad/version.Version={{ .Version }} - # if segment analytics is to be active, set an env variable for the token - - -X github.com/Mirantis/launchpad/pkg/analytics.SegmentToken={{ .Env.SEGMENT_TOKEN }} - goos: - - linux - - darwin - - windows - - freebsd - goarch: - - amd64 - - arm64 - no_unique_dist_dir: true - binary: "release/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_{{ .Version }}"