@@ -103,14 +103,14 @@ GO_TOOLS_GOLANGCI_LINT ?= $(shell $(GO) env GOPATH)/bin/golangci-lint
103
103
DOCKER_BUILD_IMAGE ?= ghcr.io/sylr/yage
104
104
DOCKER_BUILD_VERSION ?= $(GIT_VERSION )
105
105
DOCKER_BUILD_GO_VERSION ?= 1.22
106
- DOCKER_BUILD_LABELS = --label org.opencontainers.image.title=yage
107
- DOCKER_BUILD_LABELS += --label org.opencontainers.image.description="age+yaml"
108
- DOCKER_BUILD_LABELS += --label org.opencontainers.image.url="https://github.com/sylr/yage"
109
- DOCKER_BUILD_LABELS += --label org.opencontainers.image.source="https://github.com/sylr/yage"
110
- DOCKER_BUILD_LABELS += --label org.opencontainers.image.revision=$(GIT_REVISION )
111
- DOCKER_BUILD_LABELS += --label org.opencontainers.image.version=$(GIT_VERSION )
112
- DOCKER_BUILD_LABELS += --label org.opencontainers.image.created=$(shell date -u +'% Y-% m-% dT% H:% M:% SZ')
113
- DOCKER_BUILD_BUILD_ARGS ? = --build-arg=GO_VERSION =$(DOCKER_BUILD_GO_VERSION )
106
+ DOCKER_BUILD_LABELS = --annotation org.opencontainers.image.title=yage
107
+ DOCKER_BUILD_LABELS += --annotation org.opencontainers.image.description="age+yaml"
108
+ DOCKER_BUILD_LABELS += --annotation org.opencontainers.image.url="https://github.com/sylr/yage"
109
+ DOCKER_BUILD_LABELS += --annotation org.opencontainers.image.source="https://github.com/sylr/yage"
110
+ DOCKER_BUILD_LABELS += --annotation org.opencontainers.image.revision=$(GIT_REVISION )
111
+ DOCKER_BUILD_LABELS += --annotation org.opencontainers.image.version=$(GIT_VERSION )
112
+ DOCKER_BUILD_LABELS += --annotation org.opencontainers.image.created=$(shell date -u +'% Y-% m-% dT% H:% M:% SZ')
113
+ DOCKER_BUILD_BUILD_ARGS : = --build-arg=VERSION =$(GIT_VERSION )
114
114
DOCKER_BUILD_BUILD_ARGS += --metadata-file=.buildx-metadata.json
115
115
DOCKER_BUILDX_PLATFORMS ?= linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
116
116
@@ -249,7 +249,7 @@ docker-buildx-build:
249
249
$(DOCKER_BUILD_BUILD_ARGS ) \
250
250
$(DOCKER_BUILD_LABELS )
251
251
252
- docker-buildx-push :
252
+ docker-buildx-push : crossbuild
253
253
@docker buildx build . -f Dockerfile \
254
254
-t $(DOCKER_BUILD_IMAGE ) :$(DOCKER_BUILD_VERSION ) \
255
255
--platform=$(DOCKER_BUILDX_PLATFORMS ) \
0 commit comments