mirror of https://github.com/docker/buildx.git
hack: lint scripts
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
9c69ba6f6f
commit
85723a138f
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
: ${BUILDX_CMD=docker buildx}
|
: "${BUILDX_CMD=docker buildx}"
|
||||||
: ${TMUX=}
|
: "${TMUX=}"
|
||||||
|
|
||||||
function clean {
|
function clean {
|
||||||
docker rmi $iid
|
docker rmi $iid
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
: ${BUILDX_CMD=docker buildx}
|
: "${BUILDX_CMD=docker buildx}"
|
||||||
: ${BUILDKIT_IMAGE=moby/buildkit:buildx-stable-1}
|
: "${BUILDKIT_IMAGE=moby/buildkit:buildx-stable-1}"
|
||||||
: ${BUILDKIT_CFG=}
|
: "${BUILDKIT_CFG=}"
|
||||||
: ${DRIVER=docker-container}
|
: "${DRIVER=docker-container}"
|
||||||
: ${DRIVER_OPT=}
|
: "${DRIVER_OPT=}"
|
||||||
: ${ENDPOINT=}
|
: "${ENDPOINT=}"
|
||||||
: ${MULTI_NODE=0}
|
: "${MULTI_NODE=0}"
|
||||||
: ${PLATFORMS=linux/amd64,linux/arm64}
|
: "${PLATFORMS=linux/amd64,linux/arm64}"
|
||||||
|
|
||||||
function buildxCmd {
|
function buildxCmd {
|
||||||
(set -x ; $BUILDX_CMD "$@")
|
(set -x ; $BUILDX_CMD "$@")
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
: ${BUILDX_CMD=docker buildx}
|
: "${BUILDX_CMD=docker buildx}"
|
||||||
: ${FORMATS=md}
|
: "${FORMATS=md}"
|
||||||
|
|
||||||
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
|
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
|
||||||
(set -x ; DOCS_FORMATS=$FORMATS ${BUILDX_CMD} bake --set "*.output=$output" update-docs)
|
(set -x ; DOCS_FORMATS=$FORMATS ${BUILDX_CMD} bake --set "*.output=$output" update-docs)
|
||||||
rm -rf ./docs/reference/*
|
rm -rf ./docs/reference/*
|
||||||
cp -R "$output"/out/* ./docs/
|
cp -R "$output"/out/* ./docs/
|
||||||
rm -rf $output
|
rm -rf "$output"
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
: ${BUILDX_CMD=docker buildx}
|
: "${BUILDX_CMD=docker buildx}"
|
||||||
|
|
||||||
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
|
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
|
||||||
(set -x ; ${BUILDX_CMD} bake --set "*.output=$output" update-vendor)
|
(set -x ; ${BUILDX_CMD} bake --set "*.output=$output" update-vendor)
|
||||||
rm -rf ./vendor
|
rm -rf ./vendor
|
||||||
cp -R "$output"/out/* .
|
cp -R "$output"/out/* .
|
||||||
rm -rf $output
|
rm -rf "$output"
|
||||||
|
|
Loading…
Reference in New Issue