From 46d4ceb4b26e69fdbe17de90d56d1217b1122ba5 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Tue, 5 Nov 2024 03:46:56 +0000 Subject: [PATCH 1/3] Add release workflow --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7aa2089 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + packages: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 + with: + go-version: 1.22 + - uses: goreleaser/goreleaser-action@v6 + with: + args: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 9dc3e7dda7040c73eda103e9dc91a123db8f27d9 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Tue, 5 Nov 2024 04:52:55 +0000 Subject: [PATCH 2/3] Fix misplaced goreleaser action args in test workflow --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f58231..b73ffa9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,4 +49,5 @@ jobs: go-version: 1.22 - name: Goreleaser image building test uses: goreleaser/goreleaser-action@v6 - args: release --snapshot + with: + args: release --snapshot From 9df9a6b5057461ac26a9d16a7a0e07761ea212dd Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Tue, 5 Nov 2024 04:58:54 +0000 Subject: [PATCH 3/3] Add missing REGISTRY env to goreleaser config --- goreleaser.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/goreleaser.yml b/goreleaser.yml index 5b0e6e6..b9ae096 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -1,5 +1,6 @@ project_name: aws-checker env: + - REGISTRY=ghcr.io/chatwork builds: - id: aws-checker main: ./