11# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22#
3- # Generated on 2024-10-10T15:35:11Z by kres 3919238 .
3+ # Generated on 2024-12-04T08:15:33Z by kres 232fe63 .
44
55# common variables
66
@@ -17,15 +17,15 @@ WITH_RACE ?= false
1717REGISTRY ?= ghcr.io
1818USERNAME ?= siderolabs
1919REGISTRY_AND_USERNAME ?= $(REGISTRY ) /$(USERNAME )
20- PROTOBUF_GO_VERSION ?= 1.34 .2
20+ PROTOBUF_GO_VERSION ?= 1.35 .2
2121GRPC_GO_VERSION ?= 1.5.1
22- GRPC_GATEWAY_VERSION ?= 2.22 .0
22+ GRPC_GATEWAY_VERSION ?= 2.24 .0
2323VTPROTOBUF_VERSION ?= 0.6.0
24- GOIMPORTS_VERSION ?= 0.25 .0
24+ GOIMPORTS_VERSION ?= 0.27 .0
2525DEEPCOPY_VERSION ?= v0.5.6
26- GOLANGCILINT_VERSION ?= v1.61 .0
26+ GOLANGCILINT_VERSION ?= v1.62 .0
2727GOFUMPT_VERSION ?= v0.7.0
28- GO_VERSION ?= 1.23.2
28+ GO_VERSION ?= 1.23.3
2929GO_BUILDFLAGS ?=
3030GO_LDFLAGS ?=
3131CGO_ENABLED ?= 0
@@ -41,11 +41,13 @@ PLATFORM ?= linux/amd64
4141PROGRESS ?= auto
4242PUSH ?= false
4343CI_ARGS ?=
44+ BUILDKIT_MULTI_PLATFORM ?= 1
4445COMMON_ARGS = --file=Dockerfile
4546COMMON_ARGS += --provenance=false
4647COMMON_ARGS += --progress=$(PROGRESS )
4748COMMON_ARGS += --platform=$(PLATFORM )
4849COMMON_ARGS += --push=$(PUSH )
50+ COMMON_ARGS += --build-arg=BUILDKIT_MULTI_PLATFORM=$(BUILDKIT_MULTI_PLATFORM )
4951COMMON_ARGS += --build-arg=ARTIFACTS="$(ARTIFACTS ) "
5052COMMON_ARGS += --build-arg=SHA="$(SHA ) "
5153COMMON_ARGS += --build-arg=TAG="$(TAG ) "
@@ -145,6 +147,15 @@ target-%: ## Builds the specified target defined in the Dockerfile. The build r
145147
146148local-% : # # Builds the specified target defined in the Dockerfile using the local output type. The build result will be output to the specified local destination.
147149 @$(MAKE ) target-$* TARGET_ARGS=" --output=type=local,dest=$( DEST) $( TARGET_ARGS) "
150+ @PLATFORM=$(PLATFORM ) DEST=$(DEST ) bash -c ' \
151+ for platform in $$ (tr " ," " \n" <<< " $$PLATFORM" ); do \
152+ echo $$ platform; \
153+ directory=" $$ {platform//\//_}" ; \
154+ if [[ -d " $$ DEST/$$ directory" ]]; then \
155+ mv " $$ DEST/$$ directory/" * $$ DEST; \
156+ rmdir " $$ DEST/$$ directory/" ; \
157+ fi ; \
158+ done'
148159
149160lint-golangci-lint : # # Runs golangci-lint linter.
150161 @$(MAKE ) target-$@
0 commit comments