From 94b3cbd2db6ec87b5d9902cb18a154b7125f0b92 Mon Sep 17 00:00:00 2001 From: chenk Date: Mon, 31 Jul 2023 14:29:40 +0300 Subject: [PATCH 1/3] chore: windows release support Signed-off-by: chenk --- .gitignore | 1 + .goreleaser.yml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 866a9e3..92fc2e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ coverage.txt linux-bench dist +.vscode/ \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 865a81f..6e1eecc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,6 +8,7 @@ builds: binary: linux-bench goos: - linux + - windows goarch: - amd64 - arm @@ -29,8 +30,9 @@ nfpms: description: "Linux-bench checks whether a Linux server according to security best practices as defined in the CIS Distribution-Independent Linux Benchmark" license: Apache-2.0 homepage: https://github.com/aquasecurity/linux-bench - files: - "cfg/**/*": "/etc/linux-bench/cfg" + contents: + - src: "cfg/**/*" + dst: "/etc/linux-bench/cfg" formats: - deb - rpm From 099e7e2eb3bdb69939cbe2d6e27d293e8197a4ae Mon Sep 17 00:00:00 2001 From: chenk Date: Mon, 31 Jul 2023 14:46:34 +0300 Subject: [PATCH 2/3] chore: windows release support Signed-off-by: chenk --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b823c5f..5ac59bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Release uses: goreleaser/goreleaser-action@v2 with: - version: v0.148.0 + version: v1.7.0 args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From ab158f3406df1afffd5a2bb62cfaa21bc849a639 Mon Sep 17 00:00:00 2001 From: chenk Date: Mon, 31 Jul 2023 14:49:54 +0300 Subject: [PATCH 3/3] chore: windows release support Signed-off-by: chenk --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a2a993..acd3731 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,5 +32,5 @@ jobs: - name: Dry-run release snapshot uses: goreleaser/goreleaser-action@v2 with: - version: v0.148.0 + version: v1.7.0 args: release --snapshot --skip-publish --rm-dist