From 1e18086c4d5059c8a2f2307f27af26ef2c93fcd7 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 8 Oct 2020 00:15:23 -0600 Subject: [PATCH] update, working on a true static binary. --- .github/workflows/build.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a7a1843..b32301a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,6 +28,8 @@ jobs: GOOS: linux GOARCH: amd64 run: | + apt-get update && apt-get install -y file + cd $PROJECT_PATH go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go @@ -35,6 +37,8 @@ jobs: chmod +x scrutiny-web-linux-amd64 chmod +x scrutiny-collector-metrics-linux-amd64 + file scrutiny-web-linux-amd64 + file scrutiny-collector-metrics-linux-amd64 - name: Build arm env: GOOS: linux