From 0698a1619378daf0eae6659e47d1e15adcc530fc Mon Sep 17 00:00:00 2001 From: Tilman Kamp <5991088+tilmankamp@users.noreply.github.com> Date: Mon, 11 Feb 2019 11:50:43 +0100 Subject: [PATCH] Fixed and improved image publishing --- bin/publish-images.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/publish-images.sh b/bin/publish-images.sh index e5c4a85..0b8610e 100755 --- a/bin/publish-images.sh +++ b/bin/publish-images.sh @@ -8,6 +8,7 @@ print_header () { for role in "${roles[@]}"; do print_header "Publishing ${role}..." - lxc stop snakepit-${role} - lxc publish --public snakepit-${role} --alias snakepit-${role} + lxc stop snakepit-${role} || true + lxc image delete snakepit-${role} || true + lxc publish --public snakepit-${role} --alias snakepit-${role} || true done