From c27364c7ef3874311166bdb19c58214daf886750 Mon Sep 17 00:00:00 2001 From: Stanislav Blokhin Date: Wed, 22 Feb 2023 18:18:29 +0100 Subject: [PATCH] Go 1.20 --- .github/dependabot.yaml | 10 ++++++++++ .github/workflows/build.yaml | 12 ++++++------ README.md | 2 +- go.mod | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..c507d44 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c27d5a1..f9bc7fb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -22,9 +22,9 @@ jobs: run: git fetch --force --tags - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: "1.20" - name: Build & install run: | @@ -40,17 +40,17 @@ jobs: bats ./bats - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v4 if: success() && startsWith(github.ref, 'refs/tags/') with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 57957f0..66bfe1a 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ application. brew install goreleaser/tap/goreleaser # Local-only release -goreleaser release --snapshot --rm-dist +goreleaser release --snapshot --clean # Build for local testing goreleaser build --single-target diff --git a/go.mod b/go.mod index c5b7dfd..80a9967 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/tomologic/couchlock -go 1.17 +go 1.20