complete i think
parent
52d41e9b68
commit
eff7fd01ca
4
build.sh
4
build.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue