Skip to content

Commit

Permalink
Use a better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Dec 5, 2023
1 parent ffaa853 commit 25349c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
- name: Import and push to GHCR
run: |
version=$(yq '(.version|split("-"))[0]' rockcraft.yaml)
file_name=$(yq '(.version)' rockcraft.yaml)
rock_image_version=$(yq '(.version)' rockcraft.yaml)
base=$(yq '(.base|split("@"))[1]' rockcraft.yaml)
tag=${version}-${base}_edge
sudo skopeo --insecure-policy copy \
oci-archive:charmed-mongodb_${file_name}_amd64.rock \
oci-archive:charmed-mongodb_${rock_image_version}_amd64.rock \
docker-daemon:ghcr.io/canonical/charmed-mongodb:${tag}
docker push ghcr.io/canonical/charmed-mongodb:${tag}
4 changes: 2 additions & 2 deletions .github/workflows/publish_beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: Import and push to GHCR
run: |
version=$(yq '(.version|split("-"))[0]' rockcraft.yaml)
file_name=$(yq '(.version)' rockcraft.yaml)
rock_image_version=$(yq '(.version)' rockcraft.yaml)
base=$(yq '(.base|split("@"))[1]' rockcraft.yaml)
tag=${version}-${base}_beta
sudo skopeo --insecure-policy copy \
oci-archive:charmed-mongodb_${file_name}_amd64.rock \
oci-archive:charmed-mongodb_${rock_image_version}_amd64.rock \
docker-daemon:ghcr.io/canonical/charmed-mongodb:${tag}
docker push ghcr.io/canonical/charmed-mongodb:${tag}

0 comments on commit 25349c8

Please sign in to comment.