From 4acae540c8ef7651456e926f95de9c36cd0c62b6 Mon Sep 17 00:00:00 2001 From: fatedier Date: Wed, 23 Mar 2022 21:15:01 +0800 Subject: [PATCH] support go1.18 and remove go1.16 (#2868) --- .circleci/config.yml | 4 ++-- .github/workflows/build-and-push-image.yml | 2 +- .github/workflows/goreleaser.yml | 2 +- .goreleaser.yml | 5 ++++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b8f19803..f8623698 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,14 +2,14 @@ version: 2 jobs: go-version-latest: docker: - - image: cimg/go:1.17-node + - image: cimg/go:1.18-node steps: - checkout - run: make - run: make alltest go-version-last: docker: - - image: cimg/go:1.16-node + - image: cimg/go:1.17-node steps: - checkout - run: make diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index ef436259..d929e58b 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - run: | # https://github.com/actions/setup-go/issues/107 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a58546ac..40914a46 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - run: | # https://github.com/actions/setup-go/issues/107 diff --git a/.goreleaser.yml b/.goreleaser.yml index 6cf8c6a6..e1aaff07 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,10 @@ builds: - skip: true checksum: - name_template: 'checksums.txt' + name_template: '{{ .ProjectName }}_{{ .Version }}_sha256_checksums.txt' + algorithm: sha256 + extra_files: + - glob: ./release/packages/* release: # Same as for github # Note: it can only be one: either github, gitlab or gitea