Skip to content

Commit

Permalink
LM change a way of versioning images for template (#207)
Browse files Browse the repository at this point in the history
* LM change a way of versioning images for template from example: 0.2.0 to v0.2.0

* Update .github/workflows/create-release.yaml

Co-authored-by: Piotr Miśkiewicz <[email protected]>

---------

Co-authored-by: Jarosław Pieszka <[email protected]>
Co-authored-by: Piotr Miśkiewicz <[email protected]>
  • Loading branch information
3 people authored Mar 2, 2023
1 parent 4b78710 commit 9d1dfe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
- name: Wait for btp-operator module
# Prow job which uploads the template.yaml also pushes the OCI module image to the registry, so there is no need to make retries for btp-operator module image. It must exist.
run: |
found=$(skopeo list-tags $BTP_OPERATOR_REPO | jq '.Tags|any(. == "${{ github.event.inputs.name }}")')
found=$(skopeo list-tags $BTP_OPERATOR_REPO | jq '.Tags|any(. == "v${{ github.event.inputs.name }}")')
if [ $found == "false" ]; then
echo "Image $BTP_OPERATOR_REPO:${{ github.event.inputs.name }} not found"
echo "Module Image $BTP_OPERATOR_REPO:v${{ github.event.inputs.name }} not found"
exit 1
else
echo "Image found"
Expand All @@ -67,7 +67,7 @@ jobs:
while [ $found == "false" ]
do
found=$(skopeo list-tags $BTP_MANAGER_REPO | jq '.Tags|any(. == "${{ github.event.inputs.name }}")')
echo "Waiting for btp-operator image: $BTP_MANAGER_REPO:${{ github.event.inputs.name }}"
echo "Waiting for BTP Manager image: $BTP_MANAGER_REPO:${{ github.event.inputs.name }}"
sleep 10
done
echo "BTP-manager image found"
Expand Down

0 comments on commit 9d1dfe7

Please sign in to comment.