-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
possible solution to deploy to both dockerhub and ghcr #2051
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
itzg
left a comment
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.
The changes look right to me. I'll try to lookup how I did my initial testing of the image publishing 😀.
|
...oh, I remember now. The build triggers inlcude branches that start with |
|
As far as you testing it, I think it'll work for a non-PR'ed branch that starts with |
|
I will see if i can get it to test when I take lunch. |
* master: added information on the escaping of $ in the CF API Key (itzg#2050)
|
i see in the build-multiarch a reference to MODS_FORGEAPI_KEY. can you point me to where I can request a key? I am creating a |
|
That's one in the same as CF_API_KEY just it's from an older contributes feature. (I need to deprecate away that feature at some point.) It should actually be optional for the build and didn't remember that I even had that set in my repo secrets 😀 |
|
Ok, i was going to try my CF Key. thanks. |
|
...and now that I rediscovered that, makes me realize I could be re-enabling the build time test for auto CurseForge by re-mapping that variable |
|
If you want to include that with your PR it would be a copy of this line
but with CF_API_KEY being the resulting variable. |
|
ive got a test/ branch running now with those changes, since this PR is open on the non-test branch, if it is successful, I will merge those changes back in to this branch, and will reference the test branch action runs. |
|
Login for GHCR was successful for all platforms. as was the build. the build and push was also successful, but doesn't actually push (so it isn't fully tested with the |
|
I have a feeling that using EDIT: I take that back. i have a repo that pushes to GHCR and uses |
* master: Auto CurseForge, added docs to use env file (itzg#2054)
|
I'm sorry that I forgot about this PR. Later today I'll either do a quick test branch build or just merge and tweak configs from there if needed. |
|
Pushed some fixes to the build to handle test/* branches. Apparently I broke it was back when I switched to matrix builds. |
|
I see that the push to ghcr.io is failing with a 500. i may modify the job that pushes to have it push to my docker hub and ghcr. see if i can reproduce it. |
|
I got an error, but mine was a 403 forbidden. I am trying now to change the "actions settings" on my fork to allow read/write, to see if that allows the push. |
|
That would be great. Using the https://github.com/itzg/docker-minecraft-server/actions/runs/4600691357 Using https://github.com/itzg/docker-minecraft-server/actions/runs/4603497390/jobs/8133557812 I'm suspecting there is a rate limit on GHCR publish operations, where 14 concurrent ones probably exceeds that. |
|
https://github.com/camalot/docker-minecraft-server/pkgs/container/minecraft-server I changed the action settings to read/write and it pushed to ghcr for my fork, and my docker hub |
|
https://github.com/camalot/docker-minecraft-server/tree/test/ghcr-publish this is the branch that pushed. |
|
Obviously i had to change the build-publish workflow to push to on a less restrictive criteria. but that is the only thing that should have been changed compared to what i pushed to this branch. |
Hmm, I had the workflow settings like you screenshot'ed above, so I'm wondering what you mean by these workflow changes? The mix of success and 403's (and 500s) was very odd though. It's like the permissions are right, but something sporadically fails. |
|
my |
|
Can you point me to the latest build that went through for you? I'll put my test branch back to |
Co-authored-by: Geoff Bourne <itzgeoff@gmail.com>


I am not able to test this AFAIK because of permissions and such, but this should log in to both dockerhub and ghcr, and add image tags for both dockerhub and ghcr.
Closes #1444 and #2009