Skip to content

Commit

Permalink
fix: improve goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 9, 2020
1 parent 2ac7b2a commit 0f8a0d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ builds:
ldflags:
- -s -w -X github.com/ory/kratos/cmd.BuildVersion={{.Tag}} -X github.com/ory/kratos/cmd.BuildGitHash={{.FullCommit}} -X github.com/ory/kratos/cmd.BuildTime={{.Date}}
# - "-extldflags '-static'"
binary: kratos-sqlite
binary: kratos
env:
- CGO_ENABLED=1
- CC=o64-clang
Expand All @@ -38,7 +38,7 @@ builds:
- sqlite
ldflags:
- -s -w -X github.com/ory/kratos/cmd.BuildVersion={{.Tag}} -X github.com/ory/kratos/cmd.BuildGitHash={{.FullCommit}} -X github.com/ory/kratos/cmd.BuildTime={{.Date}}
binary: kratos-sqlite
binary: kratos
env:
- CGO_ENABLED=1
goarch:
Expand All @@ -52,7 +52,7 @@ builds:
- sqlite
ldflags:
- -s -w -X github.com/ory/kratos/cmd.BuildVersion={{.Tag}} -X github.com/ory/kratos/cmd.BuildGitHash={{.FullCommit}} -X github.com/ory/kratos/cmd.BuildTime={{.Date}}
binary: kratos-sqlite-libmusl
binary: kratos
env:
- CGO_ENABLED=1
- CC=musl-gcc
Expand All @@ -68,7 +68,7 @@ builds:
ldflags:
- -s -w -X github.com/ory/kratos/cmd.BuildVersion={{.Tag}} -X github.com/ory/kratos/cmd.BuildGitHash={{.FullCommit}} -X github.com/ory/kratos/cmd.BuildTime={{.Date}}
- "-extldflags '-static'"
binary: kratos-sqlite
binary: kratos
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
Expand Down Expand Up @@ -197,7 +197,7 @@ dockers:
builds:
- kratos-sqlite-linux-libmusl
binaries:
- kratos-sqlite-libmusl
- kratos
image_templates:
- "oryd/kratos:v{{ .Major }}-sqlite"
- "oryd/kratos:v{{ .Major }}.{{ .Minor }}-sqlite"
Expand Down
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -e
# Code generated by godownloader on 2020-07-08T12:06:59Z. DO NOT EDIT.
# Code generated by godownloader on 2020-07-08T20:40:41Z. DO NOT EDIT.
#

usage() {
Expand Down Expand Up @@ -63,7 +63,7 @@ execute() {
get_binaries() {
case "$PLATFORM" in
darwin/386) BINARIES="kratos" ;;
darwin/amd64) BINARIES="kratos-sqlite kratos" ;;
darwin/amd64) BINARIES="kratos kratos" ;;
darwin/arm64) BINARIES="kratos" ;;
darwin/armv5) BINARIES="kratos" ;;
darwin/armv6) BINARIES="kratos" ;;
Expand All @@ -75,13 +75,13 @@ get_binaries() {
freebsd/armv6) BINARIES="kratos" ;;
freebsd/armv7) BINARIES="kratos" ;;
linux/386) BINARIES="kratos" ;;
linux/amd64) BINARIES="kratos-sqlite kratos-sqlite-libmusl kratos" ;;
linux/amd64) BINARIES="kratos kratos kratos" ;;
linux/arm64) BINARIES="kratos" ;;
linux/armv5) BINARIES="kratos" ;;
linux/armv6) BINARIES="kratos" ;;
linux/armv7) BINARIES="kratos" ;;
windows/386) BINARIES="kratos" ;;
windows/amd64) BINARIES="kratos-sqlite kratos" ;;
windows/amd64) BINARIES="kratos kratos" ;;
windows/arm64) BINARIES="kratos" ;;
windows/armv5) BINARIES="kratos" ;;
windows/armv6) BINARIES="kratos" ;;
Expand Down Expand Up @@ -368,7 +368,7 @@ EOF
PROJECT_NAME="kratos"
OWNER=ory
REPO="kratos"
BINARY=kratos-sqlite
BINARY=kratos
FORMAT=tar.gz
OS=$(uname_os)
ARCH=$(uname_arch)
Expand Down

0 comments on commit 0f8a0d8

Please sign in to comment.