From 1e87c87748e566878a6f3357f1940ce9a9ef5edd Mon Sep 17 00:00:00 2001 From: prombot Date: Wed, 12 Feb 2025 12:12:13 +0000 Subject: [PATCH] Bump Go version Signed-off-by: prombot --- .circleci/config.yml | 4 ++-- {1.22 => 1.24}/Makefile.COMMON | 2 +- {1.22 => 1.24}/base/.dockerignore | 0 {1.22 => 1.24}/base/Dockerfile | 4 ++-- {1.22 => 1.24}/base/Makefile | 0 {1.22 => 1.24}/base/download.sh | 0 {1.22 => 1.24}/base/rootfs/builder.sh | 0 {1.22 => 1.24}/base/rootfs/common.sh | 0 {1.22 => 1.24}/main/.dockerignore | 0 {1.22 => 1.24}/main/Dockerfile | 2 +- {1.22 => 1.24}/main/Makefile | 0 {1.22 => 1.24}/main/rootfs/builder.sh | 0 Makefile | 2 +- README.md | 20 ++++++++++---------- 14 files changed, 17 insertions(+), 17 deletions(-) rename {1.22 => 1.24}/Makefile.COMMON (98%) rename {1.22 => 1.24}/base/.dockerignore (100%) rename {1.22 => 1.24}/base/Dockerfile (95%) rename {1.22 => 1.24}/base/Makefile (100%) rename {1.22 => 1.24}/base/download.sh (100%) rename {1.22 => 1.24}/base/rootfs/builder.sh (100%) rename {1.22 => 1.24}/base/rootfs/common.sh (100%) rename {1.22 => 1.24}/main/.dockerignore (100%) rename {1.22 => 1.24}/main/Dockerfile (97%) rename {1.22 => 1.24}/main/Makefile (100%) rename {1.22 => 1.24}/main/rootfs/builder.sh (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2947785..6dcd323 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ version: 2.1 executors: golang: docker: - - image: cimg/go:1.23 + - image: cimg/go:1.24 vm: machine: image: ubuntu-2204:current @@ -59,8 +59,8 @@ workflows: matrix: parameters: version: - - "1.22" - "1.23" + - "1.24" filters: tags: only: /.*/ diff --git a/1.22/Makefile.COMMON b/1.24/Makefile.COMMON similarity index 98% rename from 1.22/Makefile.COMMON rename to 1.24/Makefile.COMMON index 14064d2..a304554 100644 --- a/1.22/Makefile.COMMON +++ b/1.24/Makefile.COMMON @@ -15,7 +15,7 @@ REPOSITORY := quay.io/prometheus NAME := golang-builder BRANCH := $(shell git rev-parse --abbrev-ref HEAD) SUFFIX ?= -$(subst /,-,$(BRANCH)) -VERSION := 1.22.12 +VERSION := 1.24.0 DIRNAME := $(shell basename $(CURDIR)) IMAGE_DIR ?= .build IMAGE := $(REPOSITORY)/$(NAME) diff --git a/1.22/base/.dockerignore b/1.24/base/.dockerignore similarity index 100% rename from 1.22/base/.dockerignore rename to 1.24/base/.dockerignore diff --git a/1.22/base/Dockerfile b/1.24/base/Dockerfile similarity index 95% rename from 1.22/base/Dockerfile rename to 1.24/base/Dockerfile index 199fa6a..f6d7e33 100644 --- a/1.22/base/Dockerfile +++ b/1.24/base/Dockerfile @@ -35,9 +35,9 @@ RUN \ && chmod 0755 /bin/yq \ && rm -rf /var/lib/apt/lists/* -ENV GOLANG_VERSION 1.22.12 +ENV GOLANG_VERSION 1.24.0 ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz -ENV GOLANG_DOWNLOAD_SHA256 4fa4f869b0f7fc6bb1eb2660e74657fbf04cdd290b5aef905585c86051b34d43 +ENV GOLANG_DOWNLOAD_SHA256 dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858 RUN go_file=$(/bin/download.sh ${GOLANG_DOWNLOAD_URL} ${GOLANG_DOWNLOAD_SHA256}) \ && tar -C /usr/local -xzf ${go_file} \ diff --git a/1.22/base/Makefile b/1.24/base/Makefile similarity index 100% rename from 1.22/base/Makefile rename to 1.24/base/Makefile diff --git a/1.22/base/download.sh b/1.24/base/download.sh similarity index 100% rename from 1.22/base/download.sh rename to 1.24/base/download.sh diff --git a/1.22/base/rootfs/builder.sh b/1.24/base/rootfs/builder.sh similarity index 100% rename from 1.22/base/rootfs/builder.sh rename to 1.24/base/rootfs/builder.sh diff --git a/1.22/base/rootfs/common.sh b/1.24/base/rootfs/common.sh similarity index 100% rename from 1.22/base/rootfs/common.sh rename to 1.24/base/rootfs/common.sh diff --git a/1.22/main/.dockerignore b/1.24/main/.dockerignore similarity index 100% rename from 1.22/main/.dockerignore rename to 1.24/main/.dockerignore diff --git a/1.22/main/Dockerfile b/1.24/main/Dockerfile similarity index 97% rename from 1.22/main/Dockerfile rename to 1.24/main/Dockerfile index 0bae7e2..2ef61d9 100644 --- a/1.22/main/Dockerfile +++ b/1.24/main/Dockerfile @@ -2,7 +2,7 @@ FROM rust:latest as rustbuilder RUN cargo install --git https://github.com/indygreg/apple-platform-rs --branch main --bin rcodesign apple-codesign -FROM quay.io/prometheus/golang-builder:1.22-base +FROM quay.io/prometheus/golang-builder:1.24-base MAINTAINER The Prometheus Authors RUN \ diff --git a/1.22/main/Makefile b/1.24/main/Makefile similarity index 100% rename from 1.22/main/Makefile rename to 1.24/main/Makefile diff --git a/1.22/main/rootfs/builder.sh b/1.24/main/rootfs/builder.sh similarity index 100% rename from 1.22/main/rootfs/builder.sh rename to 1.24/main/rootfs/builder.sh diff --git a/Makefile b/Makefile index 3b1929e..5c6a978 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ REPOSITORY := quay.io/prometheus NAME := golang-builder VARIANTS ?= base main -VERSION ?= 1.23 +VERSION ?= 1.24 all: build diff --git a/README.md b/README.md index e2ff457..9485aea 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,16 @@ Docker Builder Image for cross-building Golang Prometheus projects. -- `latest`, `main`, `1.23.6-main`, `1.23.6-main` ([1.23.6/main/Dockerfile](1.23.6/main/Dockerfile)) -- `arm`, `1.23.6-arm`, `1.23.6-arm` ([1.23.6/arm/Dockerfile](1.23.6/arm/Dockerfile)) -- `powerpc`, `1.23.6-powerpc`, `1.23.6-powerpc` ([1.23.6/powerpc/Dockerfile](1.23.6/powerpc/Dockerfile)) -- `mips`, `1.23.6-mips`, `1.23.6-mips` ([1.23.6/mips/Dockerfile](1.23.6/mips/Dockerfile)) -- `s390x`, `1.23.6-s390x`, `1.23.6-s390x` ([1.23.6/s390x/Dockerfile](1.23.6/s390x/Dockerfile)) -- `1.22-main`, `1.22.12-main` ([1.22/main/Dockerfile](1.22/main/Dockerfile)) -- `arm`, `1.22-arm`, `1.22.12-arm` ([1.22/arm/Dockerfile](1.22/arm/Dockerfile)) -- `powerpc`, `1.22-powerpc`, `1.22.12-powerpc` ([1.22/powerpc/Dockerfile](1.22/powerpc/Dockerfile)) -- `mips`, `1.22-mips`, `1.22.12-mips` ([1.22/mips/Dockerfile](1.22/mips/Dockerfile)) -- `s390x`, `1.22-s390x`, `1.22.12-s390x` ([1.22/s390x/Dockerfile](1.22/s390x/Dockerfile)) +- `latest`, `main`, `1.24.0-main`, `1.24.0-main` ([1.24.0/main/Dockerfile](1.24.0/main/Dockerfile)) +- `arm`, `1.24.0-arm`, `1.24.0-arm` ([1.24.0/arm/Dockerfile](1.24.0/arm/Dockerfile)) +- `powerpc`, `1.24.0-powerpc`, `1.24.0-powerpc` ([1.24.0/powerpc/Dockerfile](1.24.0/powerpc/Dockerfile)) +- `mips`, `1.24.0-mips`, `1.24.0-mips` ([1.24.0/mips/Dockerfile](1.24.0/mips/Dockerfile)) +- `s390x`, `1.24.0-s390x`, `1.24.0-s390x` ([1.24.0/s390x/Dockerfile](1.24.0/s390x/Dockerfile)) +- `1.23-main`, `1.23.6-main` ([1.23/main/Dockerfile](1.23/main/Dockerfile)) +- `arm`, `1.23-arm`, `1.23.6-arm` ([1.23/arm/Dockerfile](1.23/arm/Dockerfile)) +- `powerpc`, `1.23-powerpc`, `1.23.6-powerpc` ([1.23/powerpc/Dockerfile](1.23/powerpc/Dockerfile)) +- `mips`, `1.23-mips`, `1.23.6-mips` ([1.23/mips/Dockerfile](1.23/mips/Dockerfile)) +- `s390x`, `1.23-s390x`, `1.23.6-s390x` ([1.23/s390x/Dockerfile](1.23/s390x/Dockerfile)) ## Usage