diff --git a/.github/workflows/build_dev.yml b/.github/workflows/build_dev.yml index 8df3ed975..07515c83d 100644 --- a/.github/workflows/build_dev.yml +++ b/.github/workflows/build_dev.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.18.3' + go-version: '1.21' - name: Login to DockerHub uses: docker/login-action@v1 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 86a785518..41d0adbbe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: '1.18' + go-version: '1.21' - uses: actions/checkout@v2 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d308bda10..a75b956be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.18.3' + go-version: '1.21' - name: Login to DockerHub uses: docker/login-action@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e026f7ea4..f1fbea856 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.18' + go-version: '1.21' - name: install dependencies run: go mod tidy - name: test binaries @@ -74,7 +74,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.18' + go-version: '1.21' - name: install dependencies run: go mod tidy - name: install spicedb binary diff --git a/Dockerfile.dev b/Dockerfile.dev index 11752b4e7..166c2ff06 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM golang:1.18-alpine3.15 as builder +FROM golang:1.21-alpine3.19 as builder RUN apk add make @@ -11,7 +11,7 @@ COPY . . RUN make build -FROM alpine:3.16 +FROM alpine:3.19 COPY --from=builder /go/src/app/shield /usr/bin/ RUN apk update RUN apk add ca-certificates diff --git a/docs/docs/installation.md b/docs/docs/installation.md index 6331becd0..3a4569d45 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -51,7 +51,7 @@ $ docker run -p 8080:8080 \ Shield requires the following dependencies: -- Golang (version 1.18 or above) +- Golang (version 1.21 or above) - Git ### Build diff --git a/go.mod b/go.mod index 52d97088f..1fc979220 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/goto/shield -go 1.18 +go 1.21 require ( contrib.go.opencensus.io/exporter/prometheus v0.4.2