new build scripts

This commit is contained in:
Paul Wilde 2022-10-24 16:28:22 +01:00
parent be36d6da1b
commit 791fa4d11c

View file

@ -1,8 +1,10 @@
#!/bin/bash
commit="$1"
if [[ "$1" == "" ]]; then
echo "No commit ID provided"
$commit="develop"
exit
fi
dt=$(date +"%Y%m%d")
podman build -f Containerfile --build-arg="PLEROMA_VER=$1" -t pleroma:run-$dt-$1
podman build -f Containerfile --build-arg="PLEROMA_VER=$commit" -t pleroma:run-$dt-$commit