Skip to content

Commit

Permalink
Set DOCKER_BUILDKIT in Makefile (#50)
Browse files Browse the repository at this point in the history
Buildkit is required for multi-platform builds.
Docker version 23.0 enables buildkit by default,
but GitHub runner instances currently use version 20.10.24.
Set the DOCKER_BUILDKIT flag to enable it.
  • Loading branch information
wedaly authored Jun 5, 2023
1 parent 5a96906 commit 0b14e96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
# Ensure that the docker command line supports the manifest images
export DOCKER_CLI_EXPERIMENTAL=enabled

# Buildkit must be enabled to support multi-platform builds.
# This is enabled by default in docker version 23.0 and later.
# https://docs.docker.com/build/buildkit/
export DOCKER_BUILDKIT=1

# docker interactive console
INTERACTIVE := $(shell [ -t 0 ] && echo 1 || echo 0)
TTY=
Expand Down

0 comments on commit 0b14e96

Please sign in to comment.