Mohammed Al Sahaf
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
6 deletions
-
.goreleaser.yml
|
@ -6,8 +6,7 @@ before: |
|
|
# subsequently causes gorleaser to refuse running. |
|
|
# subsequently causes gorleaser to refuse running. |
|
|
- mkdir -p caddy-build |
|
|
- mkdir -p caddy-build |
|
|
- cp cmd/caddy/main.go caddy-build/main.go |
|
|
- cp cmd/caddy/main.go caddy-build/main.go |
|
|
- cp ./go.mod caddy-build/go.mod |
|
|
- /bin/sh -c 'cd ./caddy-build && go mod init caddy' |
|
|
- sed -i.bkp 's|github.com/caddyserver/caddy/v2|caddy|g' ./caddy-build/go.mod |
|
|
|
|
|
# GoReleaser doesn't seem to offer {{.Tag}} at this stage, so we have to embed it into the env |
|
|
# 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 |
|
|
# 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 |
|
|
- go mod edit -require=github.com/caddyserver/caddy/v2@{{.Env.TAG}} ./caddy-build/go.mod |
|
@ -36,9 +35,9 @@ builds: |
|
|
- s390x |
|
|
- s390x |
|
|
- ppc64le |
|
|
- ppc64le |
|
|
goarm: |
|
|
goarm: |
|
|
- 5 |
|
|
- "5" |
|
|
- 6 |
|
|
- "6" |
|
|
- 7 |
|
|
- "7" |
|
|
ignore: |
|
|
ignore: |
|
|
- goos: darwin |
|
|
- goos: darwin |
|
|
goarch: arm |
|
|
goarch: arm |
|
@ -56,7 +55,7 @@ builds: |
|
|
goarch: s390x |
|
|
goarch: s390x |
|
|
- goos: freebsd |
|
|
- goos: freebsd |
|
|
goarch: arm |
|
|
goarch: arm |
|
|
goarm: 5 |
|
|
goarm: "5" |
|
|
flags: |
|
|
flags: |
|
|
- -trimpath |
|
|
- -trimpath |
|
|
ldflags: |
|
|
ldflags: |
|
|