Skip to content

Commit

Permalink
fix: release.mk go version upgrade to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Aug 15, 2024
1 parent 66b8e98 commit e02d0ff
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions contrib/make/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
###############################################################################

PACKAGE_NAME := github.com/NibiruChain/nibiru
GOLANG_CROSS_VERSION ?= v1.19.4
GOLANG_CROSS_VERSION ?= v1.21.5

# The `make release` command is running a Docker container with the image
# `gorelease/goreleaser-cross:${GOLANG_CROSS_VERSION}`. This command:
# `-v "$(CURDIR)":/go/src/$(PACKAGE_NAME)`: mounts the current directory
# `release --clean`: executes the release inside the directory
release:
docker run \
--rm \
Expand All @@ -14,15 +18,15 @@ release:
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
release --rm-dist
release --clean

release-snapshot:
docker run \
--rm \
--platform linux/amd64 \
-v /tmp:/tmp \
-v "$(CURDIR)":/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
release --rm-dist --snapshot
release --clean --snapshot

0 comments on commit e02d0ff

Please sign in to comment.