-
Notifications
You must be signed in to change notification settings - Fork 2k
Added a deploy stage to automate the deployment to the official images repo #672
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
Conversation
In support of #670 |
Should probably be |
e4fb2fd
to
9e2be5c
Compare
And here's what the result of the script is: docker-library/official-images#4175 It should be the Node Bot but I use my own account for the test because we don't have a token for the bot yet. |
9e2be5c
to
1b80812
Compare
1b80812
to
5d2032c
Compare
This looks really good! Loving it |
Nice! RE: #431 I think maybe close that after this PR gets merged |
Added that to the OP, then GitHub will close it automatically linking to this PR once this is merged |
Hmmm, the script needs some tweak I think |
5d2032c
to
898cde6
Compare
3c7fc3c
to
ea0cc88
Compare
The new payload was failing so I fixed that. It also revealed that I should be handling the response of the API call. There's also new TODOs. |
However docker-library/official-images#4183 was created with the updated script. |
341ac00
to
057da8d
Compare
057da8d
to
9338afb
Compare
@SimenB @chorrell @PeterDaveHello the script changed quite a bit since the last review. Can you check it again? |
My mastery of shell scripting exponentially grew by doing this pr! |
9338afb
to
263abbe
Compare
7997732
to
df756b2
Compare
I'm not sure if it's good to "dismiss" the review if things changed, request review again maybe more properly :) |
@PeterDaveHello i think I have to dismiss the review to request another review. Im not really dismissing as much as marking your requested changes as resolved. Is that not the process? |
Anyways, this isn't quite ready because the secure token isn't working yet. |
fe2cc78
to
ebb1202
Compare
@PeterDaveHello do you know what that onbuild error is? |
hmmm, the problem seems to be consistent among multi rounds on CI ... trying to figure it out ... |
The image that
|
The PR is still open: |
Co-authored-by: Hank Brekke <brekkehj@hnryjms.io> Co-authored-by: Laurent Goderre <laurent.goderre@gmail.com>
ebb1202
to
11f3cab
Compare
I think we need to talk more about the consequences of implementing this and what it means for image updates. I’m not clear on a few things. For instance:
Also, I was wondering how we can track deploy PRs in this repo so it’s obvious to users (and us) that a PR to the docker hub has been made. |
Also what about security updates? Our current process is to highlight this docker hub prs by putting [security] in the title. |
Happy to explain the process A deploy is only triggered if the build succeeds and one of the images was changed (changes to the build itself or documentation, or even templates if the images themselves don't change) will not trigger a deploy. If a build fails and can be ignored, then the upstream PR will have to manually be created, though we can perhaps adapt the script in the future to allow it to be ran locally. When a PR is created that PR contains a link to the push commit that initiated it. Perhaps we add to the script to report back on the PR in this repo as well (though I would personally prefer to do this after we land this because it's already a big PR) The PR created upstream uses the title of the commit that initiated the build. As long as the commit message has |
A message posted back in the merged PR with link to the upstream one sounds great, but I agree it can come in a separate PR. Especially on timeouts so we're notified |
@LaurentGoderre Thanks, that answers all my questions :) I agree that adding something to the script to report back on the PR in this repo is something that can be done in another PR. Going forward we'll need to ensure our commit titles are always meaningful (e.g., "Update node.js v9.x to v9.11.1") and make sure we use Nice work! |
You all are amazing 🎉 Apologies on not being able to carry my original PR into the end. |
@hnryjms I attributed you in the commit since you did half of the original work! |
Closes #431