#!/usr/bin/env zsh set -x [[ -f ./lib.sh ]] && source ./lib.sh || exit 1 if [ "$HOSTOS" = "Darwin" ] then echo "Starting $MACHINENAME" podman machine start -q $MACHINENAME while [ "$(machine_state)" != "running" ] do echo $(machine_state) echo "Wating for $MACHINENAME to start" sleep 1 done echo "Machine $MACHINENAME running" fi echo "Building container images" for os in ${OSBUILDS[@]} do echo "Building image for ${os}" podman build --platform linux/amd64 -f Containerfile.${os} -t localhost/${IMAGE}:${os} . done