From 6af3ebf2075a94b4a98de50fcb345a2130058f94 Mon Sep 17 00:00:00 2001 From: UnAfraid Date: Tue, 13 Feb 2024 00:29:18 +0200 Subject: [PATCH] Update to Go 1.22 --- .github/workflows/go.yml | 6 +++--- .github/workflows/release.yml | 22 +++++++++++----------- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4600e5f..3cc6dd4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,12 +16,12 @@ jobs: GOARCH: amd64 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: 1.21.0 + go-version: 1.22.0 - name: Download dependencies run: go mod download diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ffc9d7..fca003a 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,23 +20,23 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Unshallow run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: 1.21.0 + go-version: 1.22.0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.16.1 - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 with: version: 8 @@ -45,7 +45,7 @@ jobs: LATEST_FRONTEND_RELEASE=$(curl -sS "https://api.github.com/repos/${FRONTEND_REPOSITORY}/releases/latest" | jq -r ".tag_name") echo 'latest_frontend_release=${LATEST_FRONTEND_RELEASE}' >> $GITHUB_OUTPUT - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: ${{ env.FRONTEND_REPOSITORY }} ref: ${{ steps.variables.outputs.latest_frontend_release }} @@ -53,10 +53,10 @@ jobs: - name: Setup Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.repository_owner }} @@ -64,7 +64,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -89,7 +89,7 @@ jobs: run: go mod download - name: GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest @@ -98,7 +98,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: Build and push image to GHCR - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . push: true diff --git a/Dockerfile b/Dockerfile index ca9a32b..aa01a76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.0-alpine as builder +FROM golang:1.22-alpine as builder RUN apk --no-cache add ca-certificates git diff --git a/go.mod b/go.mod index f474ef0..bc0c659 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/UnAfraid/wg-ui -go 1.21 +go 1.22 require ( github.com/99designs/gqlgen v0.17.43