16 lines
285 B
Bash
Executable File
16 lines
285 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
shopt -s extglob
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if (( $# == 0 )); then
|
|
readonly images=(core basic !(template|core|basic)/)
|
|
else
|
|
readonly images=("$@")
|
|
fi
|
|
|
|
for image in "${images[@]}"; do
|
|
podman build -t "code-${image%/}" -f "${image%/}/Containerfile"
|
|
done
|