Skip to content

Commit 7c7b31f

Browse files
ci: update goreleaser to v2 (#3239) (#3242)
* ci: update goreleaser to v2 * ci: update libwasmvm downloads in goreleaser * update goreleaser for arm (cherry picked from commit 767e2ed) Co-authored-by: MSalopek <[email protected]>
1 parent d102fe9 commit 7c7b31f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.goreleaser.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
version: 2
23
project_name: gaia
34

45
env:
@@ -80,7 +81,7 @@ builds:
8081
binary: gaiad
8182
hooks:
8283
pre:
83-
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.a
84+
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.x86_64.a
8485
goos:
8586
- linux
8687
goarch:
@@ -113,7 +114,7 @@ builds:
113114
binary: gaiad
114115
hooks:
115116
pre:
116-
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a
117+
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /lib/libwasmvm_muslc.aarch64.a
117118
goos:
118119
- linux
119120
goarch:
@@ -185,7 +186,7 @@ snapshot:
185186
name_template: SNAPSHOT-{{ .Commit }}
186187

187188
changelog:
188-
skip: false
189+
disable: false
189190

190191
git:
191192
# What should be used to sort tags when gathering the current and previous

Makefile

+2-5
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,13 @@ ifneq ($(strip $(TAG)),)
170170
-e CGO_ENABLED=1 \
171171
-e TM_VERSION=$(TM_VERSION) \
172172
-e COSMWASM_VERSION=$(COSMWASM_VERSION) \
173-
-v /var/run/docker.sock:/var/run/docker.sock \
174173
-v `pwd`:/go/src/gaiad \
175174
-w /go/src/gaiad \
176175
$(GORELEASER_IMAGE) \
177176
release \
178177
--snapshot \
179178
--skip=publish \
180-
--debug \
179+
--verbose \
181180
--clean
182181
@rm -rf dist/
183182
@echo "--> Done create-release-dry-run for tag: $(TAG)"
@@ -194,7 +193,6 @@ goreleaser-build-local:
194193
-e CGO_ENABLED=1 \
195194
-e TM_VERSION=$(TM_VERSION) \
196195
-e COSMWASM_VERSION=$(COSMWASM_VERSION) \
197-
-v /var/run/docker.sock:/var/run/docker.sock \
198196
-v `pwd`:/go/src/gaiad \
199197
-w /go/src/gaiad \
200198
--platform=linux/amd64 \
@@ -204,7 +202,7 @@ goreleaser-build-local:
204202
--skip=publish \
205203
--release-notes ./RELEASE_NOTES.md \
206204
--timeout 90m \
207-
--debug
205+
--verbose
208206

209207
# uses goreleaser to create static binaries for linux an darwin
210208
# requires access to GITHUB_TOKEN which has to be available in the CI environment
@@ -216,7 +214,6 @@ ci-release:
216214
-e GITHUB_TOKEN=$(GITHUB_TOKEN) \
217215
-e TM_VERSION=$(TM_VERSION) \
218216
-e COSMWASM_VERSION=$(COSMWASM_VERSION) \
219-
-v /var/run/docker.sock:/var/run/docker.sock \
220217
-v `pwd`:/go/src/gaiad \
221218
-w /go/src/gaiad \
222219
--platform=linux/amd64 \

0 commit comments

Comments
 (0)