From 05cfacb6edd0dd92bd28bbb60c91970a1dc46d3a Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Thu, 4 Oct 2018 17:47:55 -0700 Subject: [PATCH] feat(*): omit symbol and DWARF symbol tables (#70) --- .conform.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.conform.yaml b/.conform.yaml index 8b158fc9..0c98e18a 100644 --- a/.conform.yaml +++ b/.conform.yaml @@ -96,9 +96,9 @@ tasks: template: | FROM autonomy/conform:src AS {{ .Docker.CurrentStage }} {{ if and .Git.IsClean .Git.IsTag }} - RUN go build -o {{ index .Variables "binaryPath" }} -ldflags "-X \"{{ index .Variables "gitRepository" }}/cmd.Tag={{ trimAll "v" .Git.Tag }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.SHA={{ .Git.SHA }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.Built={{ .Built }}\"" + RUN go build -o {{ index .Variables "binaryPath" }} -ldflags "-s -w -X \"{{ index .Variables "gitRepository" }}/cmd.Tag={{ trimAll "v" .Git.Tag }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.SHA={{ .Git.SHA }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.Built={{ .Built }}\"" {{ else if .Git.IsClean }} - RUN go build -o {{ index .Variables "binaryPath" }} -ldflags "-X \"{{ index .Variables "gitRepository" }}/cmd.SHA={{ .Git.SHA }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.Built={{ .Built }}\"" + RUN go build -o {{ index .Variables "binaryPath" }} -ldflags "-s -w -X \"{{ index .Variables "gitRepository" }}/cmd.SHA={{ .Git.SHA }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.Built={{ .Built }}\"" {{ else }} RUN go build -o {{ index .Variables "binaryPath" }} {{ end }}