You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding a new workflow to build a container image tagged main on PR merge #1155
It would be useful to have a Github workflow that automatically builds a container image whenever a PR is merged into the main branch. In this way, users can play with features from the latest version of the code easily via running a GHCR image without having to build it themselves.
@vsoch Are you expecting an ORAS image with a latest flag automatically built from the main branch for non-prod environment? Is this issue #1155 meet your expectation?
@qweeah For PRs that are not merged yet, what's the purpose of building an image? Is it for dev preview purposes?
If you find PRs are regular, you can also do a nightly or even bi-weekly build instead. That would accomplish the same I think and give you more control of the frequency.
If you want to have the latest image tag whenever we create a commit on main then I can add another workflow similar to what we use to releasing image with tag.
The only requirement will be to removing the tags filter when the workflow is trigger.
Activity
FeynmanZhou commentedon Oct 31, 2023
@vsoch Are you expecting an ORAS image with a
latestflag automatically built from the main branch for non-prod environment? Is this issue #1155 meet your expectation?@qweeah For PRs that are not merged yet, what's the purpose of building an image? Is it for dev preview purposes?
qweeah commentedon Nov 1, 2023
If a PR is not merged, it will not be included in the dev image.
vsoch commentedon Nov 1, 2023
If you find PRs are regular, you can also do a nightly or even bi-weekly build instead. That would accomplish the same I think and give you more control of the frequency.
kranurag7 commentedon Nov 22, 2023
Hey @qweeah I took a look at the issue.
As of now, we don't have any image here with
latesttag.Details
If you want to have the latest image tag whenever we create a commit on
mainthen I can add another workflow similar to what we use to releasing image with tag.The only requirement will be to removing the tags filter when the workflow is trigger.
oras/.github/workflows/release-ghcr.yml
Lines 18 to 19 in 01e9cdd
Then the trigger for the new target will be:
qweeah commentedon Nov 22, 2023
@kranurag7 Thanks for volunteering.
mainsounds more like a better option to me.latestshould be used to point to a stable version.