-
Notifications
You must be signed in to change notification settings - Fork 387
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
[#6300] fix(workflow): add an flag to control whether update docker latest tag. #6318
Conversation
.github/workflows/docker-image.yml
Outdated
./dev/docker/build-docker.sh --platform all --type ${image_type} --image ${image_name} --tag ${{ github.event.inputs.version }} --latest | ||
else | ||
echo "Doesn't publish latest tag" | ||
./dev/docker/build-docker.sh --platform all --type ${image_type} --image ${image_name} --tag "${tag_name}-${{ github.event.inputs.version }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if...else...
is not correct, we should always build the image with tag names, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated with full_tag_name
.github/workflows/docker-image.yml
Outdated
echo "Publish tag ${full_tag_name}, doesn't update latest." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this ", doesn't update latest", it is not useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
.github/workflows/docker-image.yml
Outdated
@@ -115,8 +126,16 @@ jobs: | |||
sudo rm -rf /usr/local/lib/android | |||
sudo rm -rf /opt/hostedtoolcache/CodeQL | |||
|
|||
if [[ "${image_type}" == "gravitino" || "${image_type}" == "iceberg-rest-server" ]]; then | |||
./dev/docker/build-docker.sh --platform all --type ${image_type} --image ${image_name} --tag ${{ github.event.inputs.version }} --latest | |||
if [[ -n "${tag_name}" ]];then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a whitespace after ";"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/publish-docker-images.md
Outdated
7. If you want to update the latest tag, select the box for `Whether to update the latest tag`. | ||
7. Wait for the workflow to complete. You can see a new Docker image shown in the [Apache Docker Hub](https://hub.docker.com/u/apache) repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the sequence number, the number "7" is duplicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
…atest tag. (#6318) ### What changes were proposed in this pull request? add an flag to control whether update docker latest tag. <img width="336" alt="image" src="https://github.com/user-attachments/assets/dc2b122a-b1bf-4e42-9f90-717ac6cd55ef" /> ### Why are the changes needed? Fix: #6300 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? test in whether update latest tag
What changes were proposed in this pull request?
add an flag to control whether update docker latest tag.
Why are the changes needed?
Fix: #6300
Does this PR introduce any user-facing change?
no
How was this patch tested?
test in whether update latest tag