From 2dcd108c5346e8002c48d06d1cf3f30a5e5834b7 Mon Sep 17 00:00:00 2001 From: javierdelapuente Date: Wed, 10 Apr 2024 11:09:18 +0200 Subject: [PATCH] Fix publish (#22) --- .github/workflows/publish_charm.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_charm.yaml b/.github/workflows/publish_charm.yaml index f8c60218b..36835d504 100644 --- a/.github/workflows/publish_charm.yaml +++ b/.github/workflows/publish_charm.yaml @@ -304,10 +304,10 @@ jobs: resource_name=$(echo $image | awk -F '/' '{print $NF}' | cut -d ':' -f 1)-image fi - if [[ " ${resources[@]} " =~ " $resource " ]]; then + if [[ " ${resources[@]} " =~ " $resource_name " ]]; then docker pull $image image_id=$(docker images $image --format "{{.ID}}") - charmcraft upload-resource $charm $resource --image=$image_id --verbosity=brief + charmcraft upload-resource $charm $resource_name --image=$image_id --verbosity=brief fi done