#!/bin/bash set -eux SUITE=bullseye PYTHON_VER=3.9 DOCKER=docker if command -v podman >/dev/null; then DOCKER=podman export BUILDAH_FORMAT=docker fi build_image() { local HOST=$1 local BASE_IMAGE=$2 local IMAGE=ceo-$HOST:$SUITE if $DOCKER image exists $IMAGE; then return fi run=". .drone/$HOST-setup.sh && IMAGE__setup" if [ $HOST = generic ]; then run=". .drone/phosphoric-acid-setup.sh && IMAGE__setup" fi $DOCKER build -t $IMAGE -f - . <