diff --git a/build.sh b/build.sh index 4149aae..dfabfb8 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,7 @@ #!/bin/sh docker build -t llehouerou/restic-backup . -docker push llehouerou/restic-backup +rc=$? +if [[ ${rc} == 0 ]]; then + docker push llehouerou/restic-backup +fi