build core, basic and go variants and add template
This commit is contained in:
15
build.sh
Executable file
15
build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user