Skip to content

Commit 6af3ebf

Browse files
committed
Update to Go 1.22
1 parent e069fed commit 6af3ebf

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Diff for: .github/workflows/go.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
GOARCH: amd64
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Setup Go
22-
uses: actions/setup-go@v3
22+
uses: actions/setup-go@v5
2323
with:
24-
go-version: 1.21.0
24+
go-version: 1.22.0
2525

2626
- name: Download dependencies
2727
run: go mod download

Diff for: .github/workflows/release.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Unshallow
2626
run: git fetch --prune --unshallow
2727

2828
- name: Setup Go
29-
uses: actions/setup-go@v3
29+
uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.21.0
31+
go-version: 1.22.0
3232

3333
- name: Setup Node.js
34-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3535
with:
3636
node-version: 18.16.1
3737

3838
- name: Setup pnpm
39-
uses: pnpm/action-setup@v2
39+
uses: pnpm/action-setup@v3
4040
with:
4141
version: 8
4242

@@ -45,26 +45,26 @@ jobs:
4545
LATEST_FRONTEND_RELEASE=$(curl -sS "https://api.github.com/repos/${FRONTEND_REPOSITORY}/releases/latest" | jq -r ".tag_name")
4646
echo 'latest_frontend_release=${LATEST_FRONTEND_RELEASE}' >> $GITHUB_OUTPUT
4747
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
repository: ${{ env.FRONTEND_REPOSITORY }}
5151
ref: ${{ steps.variables.outputs.latest_frontend_release }}
5252
path: pkg/api/internal/tools/frontend/wireguard-manager
5353

5454
- name: Setup Docker Buildx
5555
id: buildx
56-
uses: docker/setup-buildx-action@v2
56+
uses: docker/setup-buildx-action@v3
5757

5858
- name: Log in to the Container registry
59-
uses: docker/login-action@v2
59+
uses: docker/login-action@v3
6060
with:
6161
registry: ${{ env.REGISTRY }}
6262
username: ${{ github.repository_owner }}
6363
password: ${{ github.token }}
6464

6565
- name: Extract metadata (tags, labels) for Docker
6666
id: meta
67-
uses: docker/metadata-action@v4
67+
uses: docker/metadata-action@v5
6868
with:
6969
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7070
tags: |
@@ -89,7 +89,7 @@ jobs:
8989
run: go mod download
9090

9191
- name: GoReleaser
92-
uses: goreleaser/goreleaser-action@v4
92+
uses: goreleaser/goreleaser-action@v5
9393
with:
9494
distribution: goreleaser
9595
version: latest
@@ -98,7 +98,7 @@ jobs:
9898
GITHUB_TOKEN: ${{ github.token }}
9999

100100
- name: Build and push image to GHCR
101-
uses: docker/build-push-action@v4
101+
uses: docker/build-push-action@v5
102102
with:
103103
context: .
104104
push: true

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21.0-alpine as builder
1+
FROM golang:1.22-alpine as builder
22

33
RUN apk --no-cache add ca-certificates git
44

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/UnAfraid/wg-ui
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/99designs/gqlgen v0.17.43

0 commit comments

Comments
 (0)