Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix script to fetch the latest published container in dockerhub #6597

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

antgamdia
Copy link
Contributor

Description of the change

This PR is to actually fix #6220 by fetching from DockerHub the more recent (!=latest) published tag. I'm removing the workaround performed in #6237.

Benefits

The script will continue to work as initially expected.

Possible drawbacks

N/A

Applicable issues

Additional information

N/A

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 7fee61a
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/64d3b07738352e0008d83351

Comment on lines +111 to +115
# Get the latest tag from the bitnami repository in DockerHub.
# Assumption: the more recent tag is the second one in the list after a reverse alphabetical sorting,
# first one is "latest", which we don't actually want.
local tag
tag=$(curl "${curl_opts[@]}" "https://hub.docker.com/v2/namespaces/bitnami/repositories/${repoName}/tags" | jq -r '.results[].name' | sort -r --version-sort | sed -n "2 {p;q}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - I'd not looked at switching from the non-existent GH repos to checking the dockerhub repo instead.

@antgamdia antgamdia merged commit 11f2c09 into vmware-tanzu:main Aug 10, 2023
@antgamdia antgamdia deleted the 6220-get-version-from-dh branch August 10, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release script uses non-existent location for container tags
2 participants