From 0f8a0d8afa6489383800d3eff1b7b1da01fbef08 Mon Sep 17 00:00:00 2001 From: aeneasr Date: Thu, 9 Jul 2020 12:22:27 +0200 Subject: [PATCH] fix: improve goreleaser config --- .goreleaser.yml | 10 +++++----- install.sh | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9a8c2c2df879..74faa9c817c2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 @@ -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: @@ -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 @@ -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 @@ -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" diff --git a/install.sh b/install.sh index f920ac0564da..a0e300e98530 100755 --- a/install.sh +++ b/install.sh @@ -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() { @@ -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" ;; @@ -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" ;; @@ -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)