From 044548d6c26fdc8b310a1be01a0314189d5028a8 Mon Sep 17 00:00:00 2001 From: Lucas Barbay Date: Thu, 20 Feb 2020 11:26:36 +0100 Subject: [PATCH] Build the binary without dependency --- .github/workflows/pr.yml | 2 +- .github/workflows/tag.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 782b91f..482906e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v1 - name: Build - run: go build -o terraform-provider-ldap_${GITHUB_REF} + run: CGO_ENABLED=0 go build -ldflags="-w -s" -o terraform-provider-ldap_${GITHUB_REF} - name: Setup Lint run: curl -LO https://github.com/golangci/golangci-lint/releases/download/v1.19.1/golangci-lint-1.19.1-linux-amd64.tar.gz && tar -xf golangci-lint-1.19.1-linux-amd64.tar.gz diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 0138e88..5eb3247 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v1 - name: Build - run: go build -o terraform-provider-ldap_${{ steps.get_version.outputs.VERSION }} + run: CGO_ENABLED=0 go build -ldflags="-w -s" -o terraform-provider-ldap_${{ steps.get_version.outputs.VERSION }} - name: Setup Lint run: curl -LO https://github.com/golangci/golangci-lint/releases/download/v1.19.1/golangci-lint-1.19.1-linux-amd64.tar.gz && tar -xf golangci-lint-1.19.1-linux-amd64.tar.gz