Skip to content

Commit

Permalink
Bump Go version (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat authored Mar 3, 2024
1 parent 2cb8794 commit 1926231
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4.1.0
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Download Dependencies
run: go mod download
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4.1.0
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Download Dependencies
run: go mod download
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get Tag
id: get_tag
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as builder
FROM golang:1.22 as builder
COPY ./ /src/project
WORKDIR /src/project
RUN CGO_ENABLED=0 go build -o '/bin/gocrane' './'
Expand Down
2 changes: 1 addition & 1 deletion example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mokiat/gocrane:latest AS gocrane

FROM golang:1.21
FROM golang:1.22
COPY --from=gocrane /bin/gocrane /bin/gocrane
COPY . /src/project
WORKDIR /src/project
Expand Down
4 changes: 1 addition & 3 deletions example/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/mokiat/gocrane/example

go 1.21

toolchain go1.21.1
go 1.22
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/mokiat/gocrane

go 1.21

toolchain go1.21.1
go 1.22

require (
github.com/fsnotify/fsnotify v1.6.0
Expand Down

0 comments on commit 1926231

Please sign in to comment.