Skip to content

Commit

Permalink
update go v1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
phamlequang committed Mar 30, 2024
1 parent 3a4535f commit 90a5648
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.21
go-version: ^1.22
id: go

- name: Check out code into the Go module directory
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build stage
FROM golang:1.21-alpine3.18 AS builder
FROM golang:1.22-alpine3.19 AS builder
WORKDIR /app
COPY . .
RUN go build -o main main.go

# Run stage
FROM alpine:3.18
FROM alpine:3.19
WORKDIR /app
COPY --from=builder /app/main .
COPY app.env .
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/techschool/simplebank

go 1.21
go 1.22

require (
github.com/aead/chacha20poly1305 v0.0.0-20201124145622-1a5aba2a8b29
Expand All @@ -21,6 +21,7 @@ require (
github.com/spf13/viper v1.10.1
github.com/stretchr/testify v1.8.1
golang.org/x/crypto v0.6.0
golang.org/x/sync v0.1.0
google.golang.org/genproto v0.0.0-20220317150908-0efb43f6373e
google.golang.org/grpc v1.45.0
google.golang.org/protobuf v1.28.1
Expand Down Expand Up @@ -64,7 +65,6 @@ require (
github.com/ugorji/go/codec v1.2.7 // indirect
go.uber.org/atomic v1.6.0 // indirect
golang.org/x/net v0.6.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/time v0.2.0 // indirect
Expand Down

0 comments on commit 90a5648

Please sign in to comment.