diff --git a/.circleci/config.yml b/.circleci/config.yml index 87604fd..1903167 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -84,7 +84,7 @@ jobs: - src-v1-{{ .Branch }}- - src-v1- - checkout - - run: go build -o terraform-provider-errorcheck_v${CIRCLE_TAG}_linux_amd64 + - run: CGO_ENABLED=0 go build -a -ldflags '-s' -o terraform-provider-errorcheck_v${CIRCLE_TAG}_linux_amd64 - run: pwd && ls -la - persist_to_workspace: root: "." @@ -107,7 +107,7 @@ jobs: - src-v1-{{ .Branch }}- - src-v1- - checkout - - run: GOOS=darwin GOARCH=amd64 go build -o terraform-provider-errorcheck_v${CIRCLE_TAG}_darwin_amd64 + - run: GOOS=darwin GOARCH=amd64 go build -a -ldflags '-s' -o terraform-provider-errorcheck_v${CIRCLE_TAG}_darwin_amd64 - run: pwd && ls -la - persist_to_workspace: root: "."