Sfoglia il codice sorgente

cicd: Ignore errors when creating podman-container target - the container may not exist

jamesread 3 anni fa
parent
commit
434e998151
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -41,8 +41,8 @@ podman-image:
 	buildah bud -t olivetin
 
 podman-container:
-	podman kill olivetin
-	podman rm olivetin
+	podman kill olivetin || true
+	podman rm olivetin || true
 	podman create --name olivetin -p 1337:1337 -v /etc/OliveTin/:/config:ro olivetin
 	podman start olivetin