mirror of https://code.forgejo.org/forgejo/runner
make: skip --disable-content-trust at docker buildx (#139)
`docker build` may be aliased as `docker buildx build`, which doesn't support --disable-content-trust switch. Signed-off-by: You-Sheng Yang <vicamo@gmail.com> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/139 Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io> Co-authored-by: You-Sheng Yang <vicamo@gmail.com> Co-committed-by: You-Sheng Yang <vicamo@gmail.com>pull/25/head
parent
acc5afc428
commit
43c5ba923f
5
Makefile
5
Makefile
|
@ -162,7 +162,10 @@ release-compress: | $(DIST_DIRS)
|
||||||
|
|
||||||
.PHONY: docker
|
.PHONY: docker
|
||||||
docker:
|
docker:
|
||||||
docker build --disable-content-trust=false -t $(DOCKER_REF) .
|
if ! docker buildx version >/dev/null 2>&1; then \
|
||||||
|
ARG_DISABLE_CONTENT_TRUST=--disable-content-trust=false; \
|
||||||
|
fi; \
|
||||||
|
docker build $${ARG_DISABLE_CONTENT_TRUST} -t $(DOCKER_REF) .
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(GO) clean -x -i ./...
|
$(GO) clean -x -i ./...
|
||||||
|
|
Loading…
Reference in New Issue