diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9fdeb57f..bf060073 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: echo "Don't cancel old workflow" tests: runs-on: ubuntu-latest - container: golang:1.16.5-alpine3.13 + container: golang:1.25-alpine3.22 continue-on-error: false name: Unit tests needs: [cancel] diff --git a/.github/workflows/review_ci.yml b/.github/workflows/review_ci.yml index 1d437221..70075a65 100644 --- a/.github/workflows/review_ci.yml +++ b/.github/workflows/review_ci.yml @@ -10,7 +10,7 @@ jobs: reviewdog: name: Run reviewdog runs-on: ubuntu-latest - container: golang:1.16.5-alpine3.13 + container: golang:1.25-alpine3.22 steps: - name: checkout id: checkout diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile index d35e0fce..639875db 100644 --- a/build/docker/Dockerfile +++ b/build/docker/Dockerfile @@ -1,6 +1,6 @@ # Stage 1 - Generate proto ########################### -FROM golang:1.19.0-alpine3.16 as proto-builder +FROM golang:1.25-alpine3.22 as proto-builder ENV CGO_ENABLED 1 ENV METRO_APPENV=${APP_ENV} @@ -27,7 +27,7 @@ RUN make proto-generate # Stage 2 - Compilation build stage ###################################### -FROM golang:1.19.0-alpine3.16 as builder +FROM golang:1.25-alpine3.22 as builder ENV CGO_ENABLED 1 ENV METRO_APPENV=${APP_ENV} @@ -59,7 +59,7 @@ RUN make go-build-metro # Stage 3 - Binary build stage ###################################### -FROM alpine:3.16 +FROM alpine:3.22 COPY --from=builder /src/bin/metro /app/ COPY --from=builder /src/config/ /app/config/ diff --git a/go.mod b/go.mod index 3629df7a..e4873949 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/razorpay/metro -go 1.19 +go 1.25 require ( cloud.google.com/go/pubsub v1.11.0 diff --git a/tests/mocksubscriber/docker/Dockerfile b/tests/mocksubscriber/docker/Dockerfile index c31c1261..dfb5a41b 100644 --- a/tests/mocksubscriber/docker/Dockerfile +++ b/tests/mocksubscriber/docker/Dockerfile @@ -1,5 +1,5 @@ #build stage -FROM golang:1.16.5-alpine3.13 as builder +FROM golang:1.25-alpine3.22 as builder ENV CGO_ENABLED 1 ARG GIT_COMMIT_HASH @@ -13,7 +13,7 @@ WORKDIR $SRC_DIR RUN go build -o mock-server tests/mocksubscriber/cmd/main.go # final stage -FROM alpine:3.13 +FROM alpine:3.22 COPY --from=builder /src/mock-server /app/ COPY ./tests/mocksubscriber/docker/entrypoint.sh /app/