1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-06 12:00:34 -07:00
moth/build/package/build.sh
2020-09-18 17:48:57 -06:00

20 lines
470 B
Bash
Executable file

#! /bin/sh
set -e
cd $(dirname $0)/../..
PODMAN=$(command -v podman || echo docker)
VERSION=$(cat CHANGELOG.md | awk -F '[][]' '/^## \[/ {print $2; exit}')
for target in moth moth-devel; do
tag=dirtbags/$target:$VERSION
echo "==== Building $tag"
$PODMAN build \
--build-arg http_proxy --build-arg https_proxy --build-arg no_proxy \
--tag dirtbags/$target \
--target $target \
-f build/package/Containerfile .
done
exit 0