-
Notifications
You must be signed in to change notification settings - Fork 86
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
Minor Docker enhancements #1660
Conversation
# Description This PR: - Sets some additional RFC standard LABELS to our Docker container - Upload the container to both GitHub and DockerHub registries (PRs do not upload to DH) - Minor Dockerfile efficiencies. It's a follow up from #1656
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- run: echo "NOW=$(date -u +%y-%m-%d)" >> $GITHUB_ENV |
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.
Updated date according to standard RFC 3339 with full year instead of 2 digits
images: centrifugeio/centrifuge-chain | ||
images: | | ||
ghcr.io/centrifuge/centrifuge-chain | ||
${{ github.event_name != 'pull_request' && 'centrifugeio/centrifuge-chain' || ''}} |
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.
Only push to DockerHub if it's not a PR
|
||
LABEL io.centrifuge.image.authors="[email protected]" \ |
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.
LABELS are set using the GHA pipleline on the metadata step.
Ideally we don't publish images from our laptops and thus no need to have this here
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.
A couple of questions, but looks great! 🚀
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.
Thanks for continuously improving our docker images!
* Add a readiness check to the Docker container * missing path change for centrifuge binary * push docker to GH registry on PRs to test image * more standard paths for the binaries * log into ghcr * Add standardized OCI labels * push to both registries * fix registry permissions * comply with RFC3339 standard date format * Minor Docker enhancements # Description This PR: - Sets some additional RFC standard LABELS to our Docker container - Upload the container to both GitHub and DockerHub registries (PRs do not upload to DH) - Minor Dockerfile efficiencies. It's a follow up from #1656 * cleanup from old PR * Update build-docker.yml with kf info
Description
This PR:
It's a follow up from #1656