Skip to content

Commit

Permalink
chore: update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingtonlope committed Feb 3, 2024
1 parent 91544c6 commit 2fc4f0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Unit Test
strategy:
matrix:
go-version: [1.18.x]
go-version: [1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -78,4 +78,3 @@ jobs:
# TOKEN_DURATION_HOUR: ${{secrets.TOKEN_DURATION_HOUR}}
# MONGO_URI: ${{secrets.MONGO_URI}}
# MONGO_DATABASE: ticket-api

8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.18-alpine AS builder
FROM golang:1.21-alpine AS builder
RUN mkdir /build
ADD . /build/
COPY . /build/
WORKDIR /build
RUN go build ./cmd/main.go

FROM alpine
FROM alpine:3
RUN adduser -S -D -H -h /app appuser
USER appuser
COPY --from=builder /build/main /app/
WORKDIR /app
CMD ["./main"]
CMD ["./main"]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/wellingtonlope/ticket-api

go 1.18
go 1.21

require (
github.com/dgrijalva/jwt-go v3.2.0+incompatible
Expand Down

0 comments on commit 2fc4f0d

Please sign in to comment.