File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 52
52
id : set_docker_tags
53
53
run : |
54
54
python3 -m pip install semver
55
- existing_tags=($(curl -s https://hub.docker.com/v2/namespaces/lightruncom/repositories/k8s-operator-init-java-agent-{{ matrix.agents.platform }}/tags\?page_size\=100 | jq -r '.results[].name'))
55
+ existing_tags=($(curl -s https://hub.docker.com/v2/namespaces/lightruncom/repositories/k8s-operator-init-java-agent-${{ matrix.agents.platform }}/tags\?page_size\=100 | jq -r '.results[].name'))
56
+ # Check that length of the array is greater than 0
57
+ if [[ ${#existing_tags[@]} -eq 0 ]] ; then
58
+ echo "Failed to fetch existing tags"
59
+ exit 1
60
+ fi
56
61
for tag in $existing_tags
57
62
do
58
63
if [[ $(pysemver compare $tag ${{steps.set_tag.outputs.TAG_NAME}}) -ge 0 ]] ; then
You can’t perform that action at this time.
0 commit comments