Explorar o código

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

jamesread %!s(int64=3) %!d(string=hai) anos
pai
achega
434e998151
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -41,8 +41,8 @@ podman-image:
 	buildah bud -t olivetin
 	buildah bud -t olivetin
 
 
 podman-container:
 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 create --name olivetin -p 1337:1337 -v /etc/OliveTin/:/config:ro olivetin
 	podman start olivetin
 	podman start olivetin