2023-11-15 14:17:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
script="$( readlink -f "${0}" )"
|
|
|
|
script_dir="$( dirname "${script}" )"
|
|
|
|
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
. "${script_dir}/check_version"
|
|
|
|
|
2023-11-17 07:22:25 +00:00
|
|
|
# vars defined in `check_version` script
|
2023-11-16 14:32:02 +00:00
|
|
|
# shellcheck disable=SC2154
|
2023-11-17 07:22:25 +00:00
|
|
|
if [ "${git_status}" = "releasing" ]; then
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
image_tag="${git_version}"
|
|
|
|
else
|
|
|
|
image_tag="latest"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Building Tag '${image_tag}'"
|
2023-11-15 14:17:02 +00:00
|
|
|
|
|
|
|
docker buildx build \
|
|
|
|
--pull --push \
|
2023-11-17 07:22:25 +00:00
|
|
|
--tag "code.yavook.de/oekzident.de/ovdashboard:${image_tag}" \
|
2023-11-15 14:17:02 +00:00
|
|
|
--platform "linux/amd64,linux/arm64" \
|
|
|
|
"${script_dir}/../.."
|