2022-08-16 19:04:49 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
|
|
|
source ${ABSDIR}/../functions.sh
|
|
|
|
source ${ABSDIR}/vars.sh
|
|
|
|
|
|
|
|
ensure_pwd_is_scriptdir
|
|
|
|
ensure_not_root
|
|
|
|
|
|
|
|
if ! podman image exists ${framadate_image}:${framadate_version}; then
|
2022-08-16 19:24:41 +00:00
|
|
|
podman build -t "${framadate_image}":"${framadate_version}" --build-arg=version="${framadate_version}" docker/
|
2022-08-16 19:06:37 +00:00
|
|
|
else
|
2022-08-16 19:04:49 +00:00
|
|
|
echo "Image ${framadate_image}:${framadate_version} already built"
|
|
|
|
fi
|
|
|
|
|
|
|
|
oci_push_to_registry ${framadate_image}:${framadate_version}
|