From fc1209b061ea80fc1c78e250e509877c67f7475c Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 22 Apr 2024 17:48:01 +0600 Subject: [PATCH 1/2] ci(reusable release): use tmp dir inside Trivy dir for GoReleaser --- .github/workflows/reusable-release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-release.yaml b/.github/workflows/reusable-release.yaml index c4ce8fe39d74..7f4f8852506e 100644 --- a/.github/workflows/reusable-release.yaml +++ b/.github/workflows/reusable-release.yaml @@ -90,6 +90,11 @@ jobs: run: | echo "$GPG_KEY" > gpg.key + # Create tmp dir for GoReleaser + - name: "create tmp dir" + run: | + mkdir tmp + - name: GoReleaser uses: goreleaser/goreleaser-action@v5 with: @@ -99,10 +104,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.ORG_REPO_TOKEN }} NFPM_DEFAULT_RPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} GPG_FILE: "gpg.key" + TMPDIR: "tmp" - name: "remove gpg key" run: | - rm gpg.key + rm gpg.key # Push images to registries (only for canary build) # The custom Dockerfile.canary is necessary From f59d32ad5083fdc3e53ef63e8935105573d68b01 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 22 Apr 2024 17:55:15 +0600 Subject: [PATCH 2/2] refactor: remove wrong spaces --- .github/workflows/reusable-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-release.yaml b/.github/workflows/reusable-release.yaml index 7f4f8852506e..752d48e5138e 100644 --- a/.github/workflows/reusable-release.yaml +++ b/.github/workflows/reusable-release.yaml @@ -108,7 +108,7 @@ jobs: - name: "remove gpg key" run: | - rm gpg.key + rm gpg.key # Push images to registries (only for canary build) # The custom Dockerfile.canary is necessary