complete i think
cicd / pull (push) Successful in 4s Details
cicd / cicd (push) Successful in 10s Details

main
bel 2023-10-28 09:24:37 -06:00
parent 52d41e9b68
commit eff7fd01ca
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ get_sha() {
} }
was=$(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 docker push $img:$t
now=$(get_sha) now=$(get_sha)
if [ -n "$was" ] && [ "$was" != "$now" ]; then if [ -n "$was" ] && [ "$was" != "$now" ]; then
echo pruning old $was echo pruning old $was
docker rmi "$was" docker rmi "$was" || true
fi fi