diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0eb1c49..ad2aad1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe with: - go-version: 1.20.x + go-version: 1.21.x - uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc with: diff --git a/.github/workflows/release-tagged.yml b/.github/workflows/release-tagged.yml index 7db3374..b5c7219 100644 --- a/.github/workflows/release-tagged.yml +++ b/.github/workflows/release-tagged.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe with: - go-version: 1.20.x + go-version: 1.21.x - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5393b81..739c74c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe with: - go-version: 1.20.x + go-version: 1.21.x cache: true - name: test diff --git a/.tool-versions b/.tool-versions index 850d43e..d70ca2f 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.20.3 +golang 1.21.3 diff --git a/go.mod b/go.mod index 1e47fe0..2607d55 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/pomerium/datasource -go 1.19 +go 1.21 require ( github.com/client9/misspell v0.3.4 diff --git a/pomerium-datasource-ip2location.dockerfile b/pomerium-datasource-ip2location.dockerfile index ad73e0e..f9aaa54 100644 --- a/pomerium-datasource-ip2location.dockerfile +++ b/pomerium-datasource-ip2location.dockerfile @@ -9,7 +9,7 @@ RUN --mount=type=secret,id=download_token \ -o /download/IP2LOCATION-LITE-DB1.CSV.ZIP \ "https://www.ip2location.com/download/?token=${DOWNLOAD_TOKEN}&file=DB1LITECSV" -FROM golang:1.20.5-buster@sha256:eb3f9ac805435c1b2c965d63ce460988e1000058e1f67881324746362baf9572 as build +FROM golang:1.21.3-bookworm@sha256:d0214956a9c50c300e430c1f6c0a820007ace238e5242c53762e61b344659e05 as build WORKDIR /build @@ -23,7 +23,7 @@ COPY ./internal/ ./internal/ COPY ./pkg/ ./pkg/ RUN make build -FROM gcr.io/distroless/base-debian11@sha256:46c5b9bd3e3efff512e28350766b54355fce6337a0b44ba3f822ab918eca4520 +FROM gcr.io/distroless/base-debian12:debug@sha256:d2890b2740037c95fca7fe44c27e09e91f2e557c62cf0910d2569b0dedc98ddc COPY --from=build /build/bin/* /bin/ COPY --from=curl /download/IP2LOCATION-LITE-DB1.CSV.ZIP /usr/share/IP2LOCATION-LITE-DB1.CSV.ZIP diff --git a/pomerium-datasource.dockerfile b/pomerium-datasource.dockerfile index b67bd79..3611c3b 100644 --- a/pomerium-datasource.dockerfile +++ b/pomerium-datasource.dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20.5-buster@sha256:eb3f9ac805435c1b2c965d63ce460988e1000058e1f67881324746362baf9572 as build +FROM golang:1.21.3-bookworm@sha256:d0214956a9c50c300e430c1f6c0a820007ace238e5242c53762e61b344659e05 as build WORKDIR /build @@ -12,7 +12,7 @@ COPY ./internal/ ./internal/ COPY ./pkg/ ./pkg/ RUN make build -FROM gcr.io/distroless/base-debian11@sha256:46c5b9bd3e3efff512e28350766b54355fce6337a0b44ba3f822ab918eca4520 +FROM gcr.io/distroless/base-debian12:debug@sha256:d2890b2740037c95fca7fe44c27e09e91f2e557c62cf0910d2569b0dedc98ddc COPY --from=build /build/bin/* /bin/