From 02bede84463c2f6f544a6c24cf508fbc5cc7739f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:17:02 +0100 Subject: [PATCH] "chore" script for docker buildx --- deploy/chores/docker_buildx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 deploy/chores/docker_buildx diff --git a/deploy/chores/docker_buildx b/deploy/chores/docker_buildx new file mode 100755 index 0000000..c4ff9a0 --- /dev/null +++ b/deploy/chores/docker_buildx @@ -0,0 +1,18 @@ +#!/bin/sh + +script="$( readlink -f "${0}" )" +script_dir="$( dirname "${script}" )" + +# shellcheck disable=SC1091 +. "${script_dir}/check_version" + +install_version="$( \ + grep '^ovd_version' "${script_dir}/../install.sh" \ + | sed -E 's/^ovd_version[^0-9]*((0|[1-9][0-9]*)[0-9\.]*[0-9]).*$/\1/' +)" + +docker buildx build \ + --pull --push \ + --tag "code.yavook.de/oekzident.de/ovdashboard:${install_version}" \ + --platform "linux/amd64,linux/arm64" \ + "${script_dir}/../.."