From c42c083b3730bf2399e4a5f308bed087c77a1e1d Mon Sep 17 00:00:00 2001 From: Stanislav Simovski Date: Sun, 9 Feb 2020 18:10:31 +0200 Subject: [PATCH] Switch prod build to official with multi-stage Use aliases for copy statement (compat change) Install missing dependencies to runner Fixed typo --- Taskfile.yml | 4 ++-- deployment/docker/ci/bin/install | 1 - deployment/docker/prod/Dockerfile | 28 ++++++++++++++++------------ deployment/docker/prod/bin/install | 6 ------ 4 files changed, 18 insertions(+), 21 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index fb8e02788..6b07a5798 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -57,10 +57,10 @@ tasks: - go install github.com/haya14busa/goverage - go install github.com/snikch/goodman/cmd/goodman - go install github.com/go-swagger/go-swagger/cmd/swagger - - '{{ if ne OS "windows" }} bash -c "curl -L https://github.com/goreleaser/goreleaser/releases/download/v{{ .GORELEASER_VERSION }}/goreleaser_$(uname -s)_$(uname -m).tar.gz | tar -xz -C $(go env GOPATH)/bin goreleaser"{{ else }} {{ end }}' + - '{{ if ne OS "windows" }} sh -c "curl -L https://github.com/goreleaser/goreleaser/releases/download/v{{ .GORELEASER_VERSION }}/goreleaser_$(uname -s)_$(uname -m).tar.gz | tar -xz -C $(go env GOPATH)/bin goreleaser"{{ else }} {{ end }}' - '{{ if ne OS "windows" }} chmod +x $(go env GOPATH)/bin/goreleaser{{ else }} {{ end }}' - '{{ if eq OS "windows" }} echo "NOTICE: You must download goreleaser manually to build this application https://github.com/goreleaser/goreleaser/releases "{{ else }}:{{ end }}' - - '{{ if ne OS "windows" }} bash -c "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v{{ .GOLINTER_VERSION }}"{{ else }}{{ end }}' + - '{{ if ne OS "windows" }} sh -c "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v{{ .GOLINTER_VERSION }}"{{ else }}{{ end }}' - '{{ if eq OS "windows" }} echo "NOTICE: You need to install golangci-lint manually to build this application https://github.com/golangci/golangci-lint#install"{{ else }}{{ end }}' compile: diff --git a/deployment/docker/ci/bin/install b/deployment/docker/ci/bin/install index c36f6d0ef..b7bb800c5 100755 --- a/deployment/docker/ci/bin/install +++ b/deployment/docker/ci/bin/install @@ -1,6 +1,5 @@ #!/usr/bin/env bash - echo "--> Turn off StrictKeyChecking" cat > /etc/ssh/ssh_config <