Skip to content

Commit

Permalink
fix full version of rock
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-Bendriss committed Jul 19, 2024
1 parent f6a592b commit dce1635
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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#*:}"
Expand All @@ -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}
Expand All @@ -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}

0 comments on commit dce1635

Please sign in to comment.