Skip to content

Commit

Permalink
chore: upgrade go to 1.22 and other dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Feb 27, 2024
1 parent bb751bd commit b398f0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all:
+golang-base

golang-base:
FROM golang:1.21.1-alpine
FROM golang:1.22.0-alpine

WORKDIR /app
ARG VERSION=dev
Expand All @@ -26,14 +26,14 @@ golang-base:
RUN export PATH="$PATH:$(go env GOPATH)/bin"

# install vektra/mockery
RUN go install github.com/vektra/mockery/v2@v2.32.4
RUN go install github.com/vektra/mockery/v2@v2.42.2

# install buf from source
RUN GO111MODULE=on GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/buf@v1.26.1
RUN GO111MODULE=on GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/buf@v1.29.0

# install linter
# binary will be $(go env GOPATH)/bin/golangci-lint
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2
RUN ls -la $(which golangci-lint)

SAVE IMAGE --push tochemey/docker-go:1.21.0-${VERSION}
SAVE IMAGE --push tochemey/docker-go:1.22.0-${VERSION}

0 comments on commit b398f0f

Please sign in to comment.