diff --git a/Dockerfile b/Dockerfile index 4581be0..c94e8c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM golang:1.24@sha256:d2d2bc1c84f7e60d7d2438a3836ae7d0c847f4888464e7ec9ba3a1339a1ee804 AS builder +# not pinning the exact image digest to support multiple architecture builds without multiple Dockerfiles + +FROM golang:1.25 AS builder COPY . /var/app WORKDIR /var/app RUN go mod tidy RUN CGO_ENABLED=0 go build -o app . -FROM alpine:3.23@sha256:fd791d74b68913cbb027c6546007b3f0d3bc45125f797758156952bc2d6daf40 +FROM alpine:3.23 LABEL org.opencontainers.image.source=https://github.com/trstringer/manual-approval RUN apk update && apk add ca-certificates COPY --from=builder /var/app/app /var/app/app diff --git a/Makefile b/Makefile index 420c847..a18f0e4 100644 --- a/Makefile +++ b/Makefile @@ -30,4 +30,4 @@ test: .PHONY: lint lint: - docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v2.1.6 golangci-lint run -v + docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v2.10.1 golangci-lint run -v diff --git a/go.mod b/go.mod index 2f1fd03..4ca8ccd 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/trstringer/manual-approval -go 1.24.0 +go 1.25.0 require ( github.com/google/go-github/v43 v43.0.0 @@ -9,5 +9,5 @@ require ( require ( github.com/google/go-querystring v1.1.0 // indirect - golang.org/x/crypto v0.45.0 // indirect + golang.org/x/crypto v0.53.0 // indirect )