From f84f5d9ceb2542b7b13e5115ea0004c591046de9 Mon Sep 17 00:00:00 2001 From: soup Date: Sun, 20 Oct 2024 12:52:57 +0200 Subject: [PATCH] chore(build): bump Go to latest patch release (#93) * chore(deps): bump Go to latest patch release * fix: bump go in dockerfile-distroless.ci --- .github/workflows/build.yaml | 5 +++-- Dockerfile | 2 +- Dockerfile-distroless.ci | 2 +- Dockerfile.ci | 2 +- go.mod | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bee162b..2cc7225 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,6 +12,7 @@ on: env: REGISTRY: ghcr.io REGISTRY_IMAGE: ghcr.io/${{ github.repository }} + GO_VERSION: '1.23' permissions: contents: write @@ -30,7 +31,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22.0' + go-version: ${{ env.GO_VERSION }} cache: true - name: Test @@ -55,7 +56,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22.0' + go-version: ${{ env.GO_VERSION }} cache: true - name: Run GoReleaser build diff --git a/Dockerfile b/Dockerfile index 341b619..8c1368d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # build app -FROM golang:1.21-alpine3.19 AS app-builder +FROM golang:1.23-alpine3.20 AS app-builder ARG VERSION=dev ARG REVISION=dev diff --git a/Dockerfile-distroless.ci b/Dockerfile-distroless.ci index 6b93e90..85da30e 100644 --- a/Dockerfile-distroless.ci +++ b/Dockerfile-distroless.ci @@ -1,5 +1,5 @@ # build app -FROM --platform=$BUILDPLATFORM golang:1.22-alpine3.19 AS app-builder +FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.20 AS app-builder #RUN apk add --no-cache git tzdata ENV SERVICE=omegabrr diff --git a/Dockerfile.ci b/Dockerfile.ci index 03a8078..2a08cda 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1,5 +1,5 @@ # build app -FROM --platform=$BUILDPLATFORM golang:1.22-alpine3.19 AS app-builder +FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.20 AS app-builder RUN apk add --no-cache git tzdata ENV SERVICE=omegabrr diff --git a/go.mod b/go.mod index 9f9c096..7ff5084 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/autobrr/omegabrr -go 1.21 +go 1.23.2 require ( github.com/blang/semver v3.5.1+incompatible