Skip to content

Commit d9b7fca

Browse files
committed
WIP
1 parent f1678fe commit d9b7fca

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.buildkite/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ steps:
22
- label: Release
33
agents:
44
image: "golang:1.25.4@sha256:698183780de28062f4ef46f82a79ec0ae69d2d22f7b160cf69f71ea8d98bf25d"
5-
cpu: "16"
6-
memory: "24G"
7-
ephemeralStorage: "20G"
5+
cpu: "24"
6+
memory: "48G"
7+
ephemeralStorage: "60G"
8+
env:
9+
GOMEMLIMIT: 44GiB
810
command:
911
- ".buildkite/scripts/release.sh"
12+
artifact_paths:
13+
- "dist/*"

.buildkite/scripts/release.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@ echo "--- Caching GPG passphrase"
1212
echo "$GPG_PASSPHRASE_SECRET" | gpg --armor --detach-sign --passphrase-fd 0 --pinentry-mode loopback
1313

1414
echo "--- Release the binaries"
15-
make release
15+
16+
if [[ -n "${SNAPSHOT}" ]]; then
17+
make release-snapshot
18+
echo "--- Uploading snapshot artifacts"
19+
ls -alh dist/
20+
else
21+
echo "Would do a real release"
22+
fi
23+

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ setup: tools vendor ## Setup the dev environment
172172

173173
.PHONY: release-snapshot
174174
release-snapshot: tools ## Make local-only test release to see if it works using "release" command
175-
@ go tool github.com/goreleaser/goreleaser/v2 release --snapshot --clean
175+
@ go tool github.com/goreleaser/goreleaser/v2 release --snapshot --clean --parallelism=4
176176

177177

178178
.PHONY: release-no-publish
@@ -182,7 +182,7 @@ release-no-publish: tools check-sign-release ## Make a release without publishin
182182

183183
.PHONY: release
184184
release: tools check-sign-release check-publish-release ## Build, sign, and upload your release
185-
@ go tool github.com/goreleaser/goreleaser/v2 release --clean --parallelism=4
185+
@ go tool github.com/goreleaser/goreleaser/v2 release --clean --parallelism=4
186186

187187

188188
.PHONY: check-sign-release

0 commit comments

Comments
 (0)