From c3d601bb550914e9bd143b2ba33f20e9a694af8b Mon Sep 17 00:00:00 2001 From: arriven <20084245+Arriven@users.noreply.github.com> Date: Fri, 1 Apr 2022 13:47:43 +0300 Subject: [PATCH] Switch ci/ci to use go1.18 --- .github/workflows/golangci-lint.yaml | 4 ++++ .github/workflows/goreleaser-action.yaml | 2 +- .github/workflows/ko-build.yaml | 2 +- .github/workflows/ko-release.yaml | 2 +- .github/workflows/test.yaml | 2 +- Dockerfile | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index b5979d8e..ebae889c 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -23,6 +23,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: diff --git a/.github/workflows/goreleaser-action.yaml b/.github/workflows/goreleaser-action.yaml index 2c28c527..98de16a0 100644 --- a/.github/workflows/goreleaser-action.yaml +++ b/.github/workflows/goreleaser-action.yaml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflows/ko-build.yaml b/.github/workflows/ko-build.yaml index 824bf85d..b73183b4 100644 --- a/.github/workflows/ko-build.yaml +++ b/.github/workflows/ko-build.yaml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - uses: actions/checkout@v2 - uses: imjasonh/setup-ko@v0.4 - run: KO_DOCKER_REPO=${DOCKER_REPO,,} ko publish --bare --tags ${{ github.ref_name }},latest --platform all . diff --git a/.github/workflows/ko-release.yaml b/.github/workflows/ko-release.yaml index 86f10a45..5ddc9a27 100644 --- a/.github/workflows/ko-release.yaml +++ b/.github/workflows/ko-release.yaml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - uses: actions/checkout@v2 - uses: imjasonh/setup-ko@v0.4 - run: KO_DOCKER_REPO=${DOCKER_REPO,,} ko publish --bare --tags ${{ github.ref_name }},latest --platform all . diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index afa6874b..74d96689 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,7 +15,7 @@ jobs: test: strategy: matrix: - go-version: [1.17.x, 1.18.x] + go-version: [1.18.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/Dockerfile b/Dockerfile index 81adbdf6..0c4044a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17 as builder +FROM golang:1.18 as builder WORKDIR /build # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change