advent22/scripts/publish
Jörn-Michael Miehe 621fb3625f improved build process
- build wheel files for all poetry-required packages (stage "build-api")
- install wheels inside "production" stage
2026-02-16 01:06:33 +00:00

22 lines
549 B
Bash
Executable file

#!/bin/bash
script="$( readlink -f "${0}" )"
script_dir="$( dirname "${script}" )"
# shellcheck disable=SC1091
. "${script_dir}/check_version"
# vars defined in `check_version` script
# shellcheck disable=SC2154
if [ "${git_status}" = "releasing" ] || [ "${git_status}" = "released" ]; then
# shellcheck disable=SC2154
image_tag="${git_version}"
else
image_tag="latest"
fi
docker buildx build \
--pull --push \
--tag "code.lenaisten.de/lenaisten/advent22:${image_tag}" \
--platform "linux/amd64" \
"${script_dir}/.."