From 3ed738059afec6b4b5b61106e4a6406e5a1fb52e Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Wed, 4 Jan 2023 01:00:02 -0500 Subject: [PATCH] Update build command Signed-off-by: Brett Logan --- Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 51b2ffeb..458651ff 100644 --- a/Makefile +++ b/Makefile @@ -107,16 +107,7 @@ inspec: inspec-check ## Run InSpec tests .phony: docker docker: @if [ -z "${GITHUB_TOKEN}" ]; then echo "GITHUB_TOKEN environment variable not set. Please set your GitHub Personal Access Token."; exit 1; fi - docker build \ - --build-arg BUILD_DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ') \ - --build-arg BUILD_REVISION=$(shell git rev-parse --short HEAD) \ - --build-arg BUILD_VERSION=$(shell git rev-parse --short HEAD) \ - -t ghcr.io/github/super-linter . - -.phony: docker-buildx -docker-buildx: - @if [ -z "${GITHUB_TOKEN}" ]; then echo "GITHUB_TOKEN environment variable not set. Please set your GitHub Personal Access Token."; exit 1; fi - docker buildx build --load \ + DOCKER_BUILDKIT=1 docker buildx build --load \ --build-arg BUILD_DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg BUILD_REVISION=$(shell git rev-parse --short HEAD) \ --build-arg BUILD_VERSION=$(shell git rev-parse --short HEAD) \