Skip to content

Commit

Permalink
Fix publish (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente authored Apr 10, 2024
1 parent 88a8be5 commit 2dcd108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dcd108

Please sign in to comment.