#!/bin/sh set -e # Check if a name argument was provided if [ -z "$1" ]; then echo "Usage: $0 " exit 1 fi containerfile="$1.Containerfile" # Check if the containerfile exists if [ ! -f "$containerfile" ]; then echo "Error: Containerfile '$containerfile' not found." exit 1 fi podman build -t "git.plabble.org/maurice/devc-$1:test" -f $containerfile