Skip to content

Commit

Permalink
update go runtime to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
madmuffin1 committed Jan 4, 2024
1 parent e2627ae commit 8b6b227
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
id: go

- name: Check out code into the Go module directory
Expand All @@ -28,15 +28,15 @@ jobs:
- name: Linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.46
version: v1.55
build:
name: test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21
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,4 +1,4 @@
FROM golang:1.17-alpine as app-builder
FROM golang:1.21-alpine as app-builder

ENV SRC_DIR /s3proxy
WORKDIR $SRC_DIR
Expand All @@ -14,7 +14,7 @@ COPY . ./
RUN apk add build-base curl && make


FROM golang:1.17-alpine as lib-builder
FROM golang:1.21-alpine as lib-builder

WORKDIR /root
RUN apk add git
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ GOFILES = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
default: build

build: clean
go build -i -v ${LDFLAGS} -o ${NAME}
go build -v ${LDFLAGS} -o ${NAME}

clean:
if [ -f "${NAME}" ] ; then rm ${NAME} ; fi

lint:
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.46.2 golangci-lint run -v
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.55.2 golangci-lint run -v

fmtcheck: tools.goimports
@echo "--> checking code formatting with 'goimports' tool"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This presigned URL has a duration period and can be used by any basic HTTP clien
## Requirements

* Docker version 17.12.0+
* Go 1.17+
* Go 1.21+


## Build
Expand Down
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/mirakl/s3proxy

go 1.17
go 1.21

require (
github.com/aws/aws-sdk-go v1.42.53
Expand Down

0 comments on commit 8b6b227

Please sign in to comment.