Skip to content
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

Add support for multi-arch images built with GHA (7.4) #134

Merged
merged 2 commits into from
Aug 19, 2021

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Aug 14, 2021

First cut to moodle-php-apache multiarch builder

First attempt to switch the automated building of moodle-php-apache
images from DockerHub to GHA. Main reason being that the former doesn't
support multiarch builds (only multiarch storage).

Link: docker/hub-feedback#1874

Experimentally we'll be, also, sending the images to both DockerHub
and GitHub registries in case we need to switch some day.

This requires:

  1. Some secrets to be created:
  1. Autobuilds @ DockerHub to be disabled (this takes exactly on them)

Remove old dockerhub hook, because now GHA is in charge of tagging.

- Add environment variable to allow scripts to make decissions.
- Remove x86 harcoded dependency.
- Disable sqlsrv and oracle drivers for non amd64 builds (they need research).

With these changes it's possible to build both amd64 and arm64 images.

Need this is place to continue testing the new multi-arch
automated builders from GHA (that will replace DockerHub
builds, because, amazingly, they don't support multi-arch yet).

Once built the multi-arch images, we'll be pushing them both
to DockerHub and also to GH own registry.
@stronk7 stronk7 changed the base branch from master to 7.4-buster August 14, 2021 23:59
@stronk7
Copy link
Member Author

stronk7 commented Aug 15, 2021

Some notes, this has been already tested with the master branch (that generates the :dev image builds). And also, by mistake (I pushed to moodlehq repo instead or mine), with the 8.0-buster branch (that generates the :8.0 and :8.0-buster image builds).

You can see how it's working @:

Both are correctly tagged and have images for linux/amd64 and linux/arm64

Also, the automated builds @ dockerhub have been disabled already, because this GHA, once merged will be in charge of all the new builds.

First attempt to switch the automated building of moodle-php-apache
images from DockerHub to GHA. Main reason being that the former doesn't
support multiarch builds (only multiarch storage).

Link: docker/hub-feedback#1874

Experimentally we'll be, also, sending the images to both DockerHub
and GitHub registries in case we need to switch some day.

This requires:

1. Some secrets to be created:
  - DOCKERHUB_USERNAME
  - DOCKERHUB_TOKEN (write perms)
  - DOCKERHUB_PASSWORD, grrr, descriptions cannot be updated using PATs,
    see peter-evans/dockerhub-description#10
  - GH_USERNAME
2. Autobuilds @ DockerHub to be disabled (this takes exactly on them)

Remove old dockerhub hook, because now GHA is in charge of tagging.
@stronk7 stronk7 merged commit 558811c into moodlehq:7.4-buster Aug 19, 2021
@stronk7
Copy link
Member Author

stronk7 commented Aug 19, 2021

self-merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants