-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
WIP: Add GHCR build option & update build to include ARM64 #57
base: master
Are you sure you want to change the base?
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.
I don't have any experience with GHCR, but I think I've either spotted something important or found an opportunity to learn something important. 😁
Based on the build data from https://github.com/sopel-irc/docker-sopel/actions/runs/9383410081 Tags for non-default python (i.e. 3.11) "tags": [
"ghcr.io/sopel-irc/sopel:8-py3.11",
"ghcr.io/sopel-irc/sopel:8.0-py3.11",
"ghcr.io/sopel-irc/sopel:8.0.0-py3.11"
] Tags for default python 3.12 "tags": [
"ghcr.io/sopel-irc/sopel:8-py3.12",
"ghcr.io/sopel-irc/sopel:8.0-py3.12",
"ghcr.io/sopel-irc/sopel:8.0.0-py3.12",
"ghcr.io/sopel-irc/sopel:8-py3",
"ghcr.io/sopel-irc/sopel:8.0-py3",
"ghcr.io/sopel-irc/sopel:8.0.0-py3",
"ghcr.io/sopel-irc/sopel:8",
"ghcr.io/sopel-irc/sopel:8.0",
"ghcr.io/sopel-irc/sopel:8.0.0",
"ghcr.io/sopel-irc/sopel:latest"
], I believe the hub tags are not showing as the secret value is not exposed to contributer builds. On my own the tags for ghcr and docker hub are shown as being created. |
Most likely, yes. I don't know why @HumorBaby implemented the image name as a secret, but I'd guess that it's because non-encrypted The little I know about GHCR tells me that we are meant to use the Unless something a little more complicated would make sense? Could have three variables:
Yielding Docker tags like |
It breaks builds on forks if it isn't configurable or using a variable. Since it'll try to push to sopel-irc namespace without being permissioned for it. |
That's fair. So the GHCR build should keep using Would it help if I set a new |
*_Ahem_*, have a gander at the blame/history for the workflow 😜 to find the true culprit:@adamus1red !! |
Probably when I complained about my build failing every time I did a push and getting an email about it |
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.
While reiterating that I am not "the maintainer" of this Docker stuff, I haven't seen much out of @HumorBaby and am curious about his take on this.
I'm definitely in favor of adding ARM64 support, and pushing images to GHCR is always nice as an alternative to the Docker Inc. repository… but I don't think this should just up and remove the "nightly" builds without prior discussion.
@@ -33,12 +33,13 @@ jobs: | |||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |||
- uses: actions/checkout@v2 | |||
|
|||
- | |||
- |
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.
- | |
- |
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- |
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.
- | |
- |
.github/workflows/docker-publish.yml
Outdated
name: Build Nightly SOPEL for ${{ matrix.python_images }} | ||
name: Build SOPEL for ${{ matrix.python_images }} | ||
uses: docker/build-push-action@v2 | ||
if: github.event_name == 'schedule' && matrix.python_images == env.default_python |
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.
This doesn't smell right. A "nightly" build pushed to Docker Hub should be able to coexist with both GHCR and ARM64 added into the mix. 🤔
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.
Should be fixed in latest version
626c1a1
to
c458265
Compare
259d339
to
17221bf
Compare
Use docker/metadata-action to generate tags and labels Add second docker/login-action to support GHCR Use docker/setup-qemu-action for multi-arch build Update docker/serup-buildx-action to v3 Fix nightly to only be built for 3.12 and fix image tags
17221bf
to
8d63832
Compare
No description provided.