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

[#6300] fix(workflow): add an flag to control whether update docker latest tag. #6318

Merged
merged 7 commits into from
Jan 17, 2025

Conversation

FANNG1
Copy link
Contributor

@FANNG1 FANNG1 commented Jan 17, 2025

What changes were proposed in this pull request?

add an flag to control whether update docker latest tag.

image

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

@FANNG1 FANNG1 changed the title [SIP] fix docker publish workflow [#6300] fix(workflow): add an flag to control whether update docker latest tag. Jan 17, 2025
@FANNG1 FANNG1 self-assigned this Jan 17, 2025
@FANNG1 FANNG1 added the branch-0.8 Automatically cherry-pick commit to branch-0.8 label Jan 17, 2025
./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 }}"
Copy link
Contributor

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?

Copy link
Contributor Author

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

echo "Publish tag ${full_tag_name}, doesn't update latest."
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -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
Copy link
Contributor

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 ";"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines 33 to 34
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.
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@FANNG1 FANNG1 merged commit 5c9685c into apache:main Jan 17, 2025
28 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 17, 2025
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-0.8 Automatically cherry-pick commit to branch-0.8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report] shouldn't publish the RC release to latest tag of docker image
2 participants