complete i think
All checks were successful
cicd / pull (push) Successful in 4s
cicd / cicd (push) Successful in 10s

This commit is contained in:
bel
2023-10-28 09:24:37 -06:00
parent 52d41e9b68
commit eff7fd01ca

View File

@@ -10,10 +10,10 @@ get_sha() {
}
was=$(get_sha)
docker build -f ./Dockerfile -t $img:$t --progress plain .
docker build -f ./Dockerfile -t $img:$t .
docker push $img:$t
now=$(get_sha)
if [ -n "$was" ] && [ "$was" != "$now" ]; then
echo pruning old $was
docker rmi "$was"
docker rmi "$was" || true
fi