17 lines
517 B
Bash
17 lines
517 B
Bash
|
#!/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
|
||
|
podman build -t "${framadate_image}":"${framadate_version}" --build-arg=version="${framadate_release}" --file ./docker/Dockerfile &&
|
||
|
then
|
||
|
echo "Image ${framadate_image}:${framadate_version} already built"
|
||
|
fi
|
||
|
|
||
|
oci_push_to_registry ${framadate_image}:${framadate_version}
|