Red Hat changed their old API to the new one here. I updated our publish script accordingly.
Old functions were declaring and using global variables which other functions could also use. This was causing confusion. I updated the functions so that they do not use or declare any global variables making it a lot easier to track, test and debug.
TODO
[x] I was not able to test the publish_the_image function's success version as it seems they did not implement the tag publish endpoints yet. I am waiting a response from the Red Hat support team I added the publish_the_image function but with the new API publish does not happen instantaneously. So I had to add a new function to wait for publish to finish before pushing the bundle image
Red Hat changed their old API to the new one here. I updated our publish script accordingly.
Old functions were declaring and using global variables which other functions could also use. This was causing confusion. I updated the functions so that they do not use or declare any global variables making it a lot easier to track, test and debug.
TODO
I was not able to test theI added thepublish_the_image
function's success version as it seems they did not implement the tag publish endpoints yet. I am waiting a response from the Red Hat support teampublish_the_image
function but with the new API publish does not happen instantaneously. So I had to add a new function to wait for publish to finish before pushing the bundle image