-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Fix publishing Docker image to GitHub #1132
Conversation
Fixes #923 |
Is this action using the org's package registry or is it deploying the package directly on the danger-js repo's package? |
registry: docker.pkg.github.com | ||
repository: danger/danger-js/danger-danger-js |
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 this should be
registry: docker.pkg.github.com | |
repository: danger/danger-js/danger-danger-js | |
registry: ghcr.io/danger | |
repository: danger-js |
But I'm not familiar with this action
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.
Is this action using the org's package registry or is it deploying the package directly on the danger-js repo's package?
It is currently using the repo's package. I will change it to the organizations namespace.
I will keep the host name as mentioned in the official documentation. ghcr.io
is an alias only.
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 just double checked. There is a difference in the hostnames: https://docs.github.com/en/packages/guides/migrating-to-github-container-registry-for-docker-images
It is recommended to use ghcr.io
to use the GitHub Container Registry. So I will change this as well.
a2fccba
to
bdbe974
Compare
I checked the official documentation and there is another exmaple how to use I will check
The above changes did not work in my fork. I will test there before opening this PR again. |
bdbe974
to
8e40a03
Compare
Docker Image Build Process at Danger SystemsProblemThe Danger JS is currently not publishing an up to date Docker Image. To stay compliant with the other Danger projects, the build process for Docker Images should be according to the other projects. ObjectiveDanger JS should provide an up to date Docker Image. This analysis should defined
Related Danger ProjectsThe following Danger projects are considered in this analysis:
Analysis
ConclusionThe implementations for Swift and Kotlin are providing a working Docker Image. They are using the recommended GitHub Container Registry for Docker Images. Danger JS should use the same mechanism to build and publish like Kotlin and Swift. The Build script for Docker Images can be copied from Kotlin. It was most recently edited by @f-meloni who might be able to help setting up the correct secrets. |
Seems reasonable to me, doesn't look like it changes my deploy flow at all 👍🏻 |
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.
Looks good to me.
@orta if you want I can add my secrets here as well, like I did on the other danger versions.
Sure, do it 👍🏻 |
What's missing here? I can help when needed :) |
I've added the secrets, so we should be fine |
OK, then we'll see on the next release 👍🏻 |
The workflow definition was copied from https://docs.github.com/en/actions/guides/publishing-docker-images#publishing-images-to-github-packages.
No changes were needed to publish the docker image to GitHub's container registry.
You can find a successfull run here: https://github.com/markuspoerschke/danger-js/runs/2240530067?check_suite_focus=true (since you can test it only once you released a new version...)