Skip to content

Conversation

@ksobrenat32
Copy link
Contributor

This pull request updates the GitHub Actions workflows responsible for publishing Beam SDK and runner Docker images. The main goal is to ensure that the "latest" Docker tag is only applied when building from the master branch, preventing non-master branches from overwriting the "latest" tag, fixes #24130 .

A step was added to set the LATEST_TAG variable to ,latest only when the workflow runs on the master branch, ensuring the "latest" tag is only used in that context. Outside of master it uses only the commit SHA.

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions github-actions bot added the build label Sep 26, 2025
@ksobrenat32
Copy link
Contributor Author

I also see the workflow has been failing, it looks like it has to do with the time limit, I will take a look.

@github-actions
Copy link
Contributor

Assigning reviewers:

R: @damccorm for label build.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

echo "DOCKER_TAG_LIST=${{ github.sha }},latest" >> $GITHUB_ENV
else
echo "DOCKER_TAG_LIST=${{ github.sha }}" >> $GITHUB_ENV
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we update this to use the same conditional logic as the other workflow? It seems cleaner

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 :)

Now all the images are tagged with the sha by default but latest just when working on main

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

Thanks!

@damccorm damccorm merged commit bbf3613 into apache:master Sep 26, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Only mark snapshots as latest if published from master

2 participants