Skip to content

Commit

Permalink
fix release version in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Nov 15, 2024
1 parent 78e227e commit f287d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
go-version: 1.22.5
check-latest: true
- name: release dry run
run: make release-dry-run
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ localnet-show-logstream:
###############################################################################

PACKAGE_NAME:=github.com/realiotech/realio-network
GOLANG_CROSS_VERSION = v1.20
GOLANG_CROSS_VERSION = v1.22.7
GOPATH ?= '$(HOME)/go'
release-dry-run:
docker run \
Expand All @@ -203,10 +203,9 @@ release-dry-run:
-e CGO_ENABLED=1 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-v ${GOPATH}/pkg:/go/pkg \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate --skip-publish --snapshot
--clean --skip=validate --skip=publish --snapshot

release:
@if [ ! -f ".release-env" ]; then \
Expand All @@ -222,7 +221,7 @@ release:
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
release --rm-dist --skip-validate
release --clean --skip=validate

.PHONY: release-dry-run release

Expand Down

0 comments on commit f287d45

Please sign in to comment.