hack: lint scripts

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-10-23 23:04:14 +02:00
parent 9c69ba6f6f
commit 85723a138f
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
4 changed files with 15 additions and 15 deletions

View File

@ -2,8 +2,8 @@
set -e
: ${BUILDX_CMD=docker buildx}
: ${TMUX=}
: "${BUILDX_CMD=docker buildx}"
: "${TMUX=}"
function clean {
docker rmi $iid

View File

@ -2,14 +2,14 @@
set -eu -o pipefail
: ${BUILDX_CMD=docker buildx}
: ${BUILDKIT_IMAGE=moby/buildkit:buildx-stable-1}
: ${BUILDKIT_CFG=}
: ${DRIVER=docker-container}
: ${DRIVER_OPT=}
: ${ENDPOINT=}
: ${MULTI_NODE=0}
: ${PLATFORMS=linux/amd64,linux/arm64}
: "${BUILDX_CMD=docker buildx}"
: "${BUILDKIT_IMAGE=moby/buildkit:buildx-stable-1}"
: "${BUILDKIT_CFG=}"
: "${DRIVER=docker-container}"
: "${DRIVER_OPT=}"
: "${ENDPOINT=}"
: "${MULTI_NODE=0}"
: "${PLATFORMS=linux/amd64,linux/arm64}"
function buildxCmd {
(set -x ; $BUILDX_CMD "$@")

View File

@ -2,11 +2,11 @@
set -eu -o pipefail
: ${BUILDX_CMD=docker buildx}
: ${FORMATS=md}
: "${BUILDX_CMD=docker buildx}"
: "${FORMATS=md}"
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
(set -x ; DOCS_FORMATS=$FORMATS ${BUILDX_CMD} bake --set "*.output=$output" update-docs)
rm -rf ./docs/reference/*
cp -R "$output"/out/* ./docs/
rm -rf $output
rm -rf "$output"

View File

@ -2,10 +2,10 @@
set -eu -o pipefail
: ${BUILDX_CMD=docker buildx}
: "${BUILDX_CMD=docker buildx}"
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
(set -x ; ${BUILDX_CMD} bake --set "*.output=$output" update-vendor)
rm -rf ./vendor
cp -R "$output"/out/* .
rm -rf $output
rm -rf "$output"