From dce163570e06eaedcef6e6f517ed599429384261 Mon Sep 17 00:00:00 2001 From: Mehdi-Bendriss Date: Fri, 19 Jul 2024 19:08:06 +0200 Subject: [PATCH] fix full version of rock --- .github/workflows/publish.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 475fb22..ad921dc 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -52,8 +52,8 @@ jobs: - name: Publish rock to Store run: | - version="$(cat rockcraft.yaml | yq .version)" - version="${version%-*}" + full_version="$(cat rockcraft.yaml | yq .version)" + version="${full_version%-*}" base="$(cat rockcraft.yaml | yq .base)" base="${base#*:}" @@ -62,7 +62,7 @@ jobs: sudo skopeo \ --insecure-policy \ copy \ - oci-archive:charmed-mongodb_${version}_amd64.rock \ + oci-archive:charmed-mongodb_${full_version}_amd64.rock \ docker-daemon:ghcr.io/canonical/charmed-mongodb:${major_tag_version} docker push ghcr.io/canonical/charmed-mongodb:${major_tag_version} @@ -72,6 +72,6 @@ jobs: sudo skopeo \ --insecure-policy \ copy \ - oci-archive:charmed-mongodb_${version}_amd64.rock \ + oci-archive:charmed-mongodb_${full_version}_amd64.rock \ docker-daemon:ghcr.io/canonical/charmed-mongodb:${tag_version} docker push ghcr.io/canonical/charmed-mongodb:${tag_version}