Bake workflow

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-09-03 22:49:59 +02:00
parent b05c313204
commit 6cfef7fa36
26 changed files with 350 additions and 551 deletions

View File

@ -1,16 +1,11 @@
#!/usr/bin/env bash
. $(dirname $0)/util
set -eu
set -eu -o pipefail
: ${BUILDX_CMD=docker buildx}
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
buildxCmd build \
--target "update" \
--output "type=local,dest=$output" \
--file "./hack/dockerfiles/docs.Dockerfile" \
.
(set -x ; ${BUILDX_CMD} bake --set "*.output=$output" update-docs)
rm -rf ./docs/reference/*
cp -R "$output"/out/* ./docs/
rm -rf $output