-
Notifications
You must be signed in to change notification settings - Fork 7
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
Modernize Docker workflow #38
Conversation
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.
I think that these are great improvements, so strong work there @felddy!
That said, I think there are a few minor issues that should be cleared up before emerging. Please see my inline comments.
In addition to that, and given that this is a skeleton repo that external folks may want to study before using, I think it might make sense to add more comments in .github/workflows/build.yml
. The intent is less to detail what is being done by the code and more to guide the eye and help break up the giant workflow into digestible chunks (or "functions") that each perform a particular function. That file is a little overwhelming at first glance, and it's difficult to find one's place again if one looks away at an email and comes back to it.
WRT commits 905799f, 3e7033b, and c506a21...I think GitHub gives you the option to combine multiple suggestions into a single commit. I haven't had a chance to confirm that yet, but this would have been an excellent place to use that feature (assuming it exists). Also, we should strive to use a better commit comment than the default offered by GitHub. "Update .github/workflows/build.yml" is not very informative. Not criticizing, just pointing out how we can better use our tools. |
I saw the "add to batch" button after I got through a couple of the suggestions. I agree, those defaults suxors. Also see my comment in the description that I plan on squash-merging this PR since the commits are too exploratory (for my liking) due to the need to debug the workflow github-side. I put that in there as I am open to preserving the individual commits if the team things there is value there. |
Maybe do a rebase, mark the fluff as |
100% agree with @mcdonnnj here. |
This is a good suggestion. I'll add some detailed documentation about what is going on. Mainly for future-me. Because I'm sure this will run for six months then fail, and I'll come back all Gandalf-in-Moria when it breaks. |
You like it when GitHub goes down?! Cause this is how GitHub goes down. 😉 |
I do this sort of thang tous les temps. C'est une chose quotidienne pour moi. You and GitHub will be OK! 🇫🇷 |
These changes are based on the "complete workflow" from https://github.com/docker/build-push-action Additionally it adds support for the new "workflow_dispatch" event type.
Needed to check tests written in Python.
223e3d5
to
247a201
Compare
Interactive rebase == Great Success!!
|
Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
247a201
to
f1e097a
Compare
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 PR looks great. Thanks for resolving all the thangs.
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.
Super sweet improvements- can't wait to get this sauce cooking! ⚙️
I discovered a lone typo in a comment, but everything else looks grand!
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.
I am requesting one minor change, for clarity.
Add some additional comments in case anyone is confused about the nature of the solidus and its place within our tagging system. Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
a0208f7
to
da037f5
Compare
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.
Thank you for elaborating upon the solidus. We must educate the masses!
🗣 Description
This PR updates the workflows to use more recent methods:
💭 Motivation and Context
I've been building this workflow based on some of the best-practices of the docker actions repos.
See here: https://github.com/docker/build-push-action#complete-workflow
Basically: If you change something in the repo, an image is going to pop out. This is a good thing. It makes testing branches a piece of cake.
🧪 Testing
Tested for a few months in my personal project.
CI.
📷 Screenshots (if appropriate)
🚥 Types of Changes
✅ Checklist