chore: Add workflow to build docker image on branches#48
Conversation
383fcbe to
cc5ffa3
Compare
d78aac7 to
47ad924
Compare
c7df534 to
cbfc45a
Compare
jason-famedly
left a comment
There was a problem hiding this comment.
Just a few things, this is looking pretty good
45cf115 to
1205215
Compare
jason-famedly
left a comment
There was a problem hiding this comment.
I think this will work just fine. If we need anything changed out later, we can do so then 🚀
|
Gonna try something, since this was actually pushed to the default branch |
|
This change has been pushed to master with command |
I think it's ok to approve these as we go, if even needed? 🤷♂️ Figure this will keep the storage down too. We may want to see what this looks like. If it gives a bunch of notifications or a huge batch of yellow lights, we may revisit this.
I think building PR images with the modules generally is not needed. It may depend on who the external contributors are. Are they the customers or just random admins that are using our work and want to give back? That being said, if needed we can probably just edit the existing workflow for our production images to have a smarter trigger, or even adjust the
If you would like to try and experiment to see what that would look like, I'm game to see what it will do. Obviously we can't do it on our local machines(I think we are not allowed to use the cli GH client? I don't remember what they said about that)
I think for the moment this is ok to ignore. We would need permission(from either Nico or Niklas) to use a new external workflow.
Nope 😆 Largely we will just use a |
Build synapse docker images also for branches #2984
My understanding so far is that we only need to generate the base image.
If the PR was generated by org user, the image with tag
pr-[pr number]will be available on both ghcr and nexus.For
workflow_dispatchtrigger, it requires manualpr_numberinput.With current setting, external contributors need approval to run any workflow.
Even their prs got the approval to run the workflow, the write permission is limited and won't able to push the images to any of the registry.
So these workflows are limited to the internal members who have the write permission to our registry.
Need clarification
gh search prs --head <branch_name> --json number --state openand retrieve pr number automatically.famedly-changes.rstfile or something?Pull Request Checklist
after the branchpr number should be built.Check the authoring user for membership in the organizationto use for deciding if 'pushing' the image is required (current status: pr from forks can't run the workflow without permission according to repo settings, so no need to check membership during the workflow)"nightly"or "branch" as a prefix to differentiate them from stable images. The tag will bepr-[pr_number]