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
Update docs GHA and renamed a doc file #4102
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.
Isn't it called dockerhub.md because its the readme for dockerhub? Is there another reason to rename it?
That file is referenced in the dockerhub-readme github action, so that would need updating too I think.
Oh you're 100% right 🤦♂️ that file actually syncs to DH...ok will rename back..not sure what I was thinking. Thanks ❤️ |
@Jamstah I just noticed that GHA (dockerhub-readme) is in the wrong directory 🙃 It should be inside GHA need some work by GitHub. Not sure how to prevent that in the future |
It also references the wrong path distribution/.github/dockerhub-readme.yml Line 12 in ebba01e
I am not sure this workflow gets picked up if it's not inside the |
Addressed the dockerhub readme kerfuffle in #4103 |
Lets see if it works :) |
The debugging story on GH Actions and Pages is not great 😅 |
💡 We might need to change the Let me raise another PR to let baseurl be controlled by a build arg. |
@dvdksn feel free to update this PR |
Dragged in David's changes and added a trigger for the workflow file Trying to test in my personal org but getting odd deploy errors :/ |
Yeah these things are sometimes a bit of witchcraft 🙃 |
Tested this on my main branch, looks good: http://jammy.id/distribution/ |
6402707
to
3e14194
Compare
PTAL @thaJeztah @davidspek |
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.
changes look good, but could use a squash of all the commits
I will squash if someone doesn't get to it before I get to my computer, but we need to merge this PR first #4105, otherwise, the CI will keep on failing 😬 |
0431119
to
d522697
Compare
Hmm ok, my local tree is totally borked . @Jamstah do you have a local copy of the changes and mind rebasing? I think with all these pushes to my fork I somehow totally messed up my branch 🤦♂️ Feel free to open a new PR if that's easier. I'm happy to close the mess I somehow created here. Sorry about this, I'm still not sure how this happened 🤔 |
No worries, did you make any further changes? |
I did not. I only tried rebasing and squashing. Still not sure what I screwed up 🤦♂️ |
d522697
to
0431119
Compare
Add missing steps to the job, pick up the path automatically, trigger the job on config file changes. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
0431119
to
777ad03
Compare
OK, reset back to my local branch, then squashed and rebased. |
Hero! Thank you 🙇♂️ PTAL @thaJeztah, but please let's merge #4105 first 😅 |
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.
Lgtm
@dvdksn Fyi looking at https://github.com/distribution/distribution/actions/runs/6533939030/job/17740105519#step:4:10, we should "touch" a |
@crazy-max I wonder why that workflow runs at all. We have this workflow which includes build and deploy: https://github.com/distribution/distribution/actions/workflows/docs.yml |
I think there might be a repository setting to disable this one: https://github.com/distribution/distribution/actions/workflows/pages/pages-build-deployment |
This is expected when deploying to GitHub Pages |
Debugging GHA is incredibly painful. We've spent hours on this and both the DH readme and GH pages workflows are still broken 🫠 |
OK this is sorted now. On @Jamstah 's advice, I've turned on GH actions deployment (instead of branch) and we're in business. |
We are missing GH pages setup step in the docs GHA
I went down the rabbit hole of GH pages and came across this:
Which made me think we may be missing this:
We also rename
dockerhub.md
todistirbution.md
.