summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2022-02-20 01:16:11 +0300
committerGitHub <noreply@github.com>2022-02-19 15:16:11 -0700
commit7778912d4eb51b5ae2c7af584c42fc85e1e09f2c (patch)
treebd5437fcec2dfab9f8251e777182f0d92b23b28f
parentc921e08296ee379da3689caa1371a3003a512648 (diff)
ci: update goreleaser (#4582)
-rw-r--r--.goreleaser.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 3b7c114..0065d40 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -6,8 +6,7 @@ before:
# subsequently causes gorleaser to refuse running.
- mkdir -p caddy-build
- cp cmd/caddy/main.go caddy-build/main.go
- - cp ./go.mod caddy-build/go.mod
- - sed -i.bkp 's|github.com/caddyserver/caddy/v2|caddy|g' ./caddy-build/go.mod
+ - /bin/sh -c 'cd ./caddy-build && go mod init caddy'
# GoReleaser doesn't seem to offer {{.Tag}} at this stage, so we have to embed it into the env
# so we run: TAG=$(git describe --abbrev=0) goreleaser release --rm-dist --skip-publish --skip-validate
- go mod edit -require=github.com/caddyserver/caddy/v2@{{.Env.TAG}} ./caddy-build/go.mod
@@ -36,9 +35,9 @@ builds:
- s390x
- ppc64le
goarm:
- - 5
- - 6
- - 7
+ - "5"
+ - "6"
+ - "7"
ignore:
- goos: darwin
goarch: arm
@@ -56,7 +55,7 @@ builds:
goarch: s390x
- goos: freebsd
goarch: arm
- goarm: 5
+ goarm: "5"
flags:
- -trimpath
ldflags: