mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-24 09:40:57 -05:00
Update build command
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
2b8f626566
commit
3ed738059a
1 changed files with 1 additions and 10 deletions
11
Makefile
11
Makefile
|
@ -107,16 +107,7 @@ inspec: inspec-check ## Run InSpec tests
|
||||||
.phony: docker
|
.phony: docker
|
||||||
docker:
|
docker:
|
||||||
@if [ -z "${GITHUB_TOKEN}" ]; then echo "GITHUB_TOKEN environment variable not set. Please set your GitHub Personal Access Token."; exit 1; fi
|
@if [ -z "${GITHUB_TOKEN}" ]; then echo "GITHUB_TOKEN environment variable not set. Please set your GitHub Personal Access Token."; exit 1; fi
|
||||||
docker build \
|
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) \
|
|
||||||
-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 \
|
|
||||||
--build-arg BUILD_DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
--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_REVISION=$(shell git rev-parse --short HEAD) \
|
||||||
--build-arg BUILD_VERSION=$(shell git rev-parse --short HEAD) \
|
--build-arg BUILD_VERSION=$(shell git rev-parse --short HEAD) \
|
||||||
|
|
Loading…
Reference in a new issue