Add GH action to build multi-arch Docker image #165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Github Action workflow allows to build the image for amd64, armv7 and arm64 platforms.
This should fix #83
The images are not built on Docker Hub itself but on Github runners following this blog post.
You have to add Github secrets
DOCKER_HUB_USERNAME
andDOCKER_HUB_ACCESS_TOKEN
for this repo and disable Automated Build on Docker Hub if enabled.You might want to precise the branch on which the action is triggered (not the case here to allow me to test on my branch) at the beginning:
You can see that this action works on my fork: https://github.com/romainreignier/docker-pure-ftpd/actions
And images are pushed to my Docker Hub account: https://hub.docker.com/r/rreignier/pure-ftpd/tags?page=1&ordering=last_updated
Produced images have been tested on amd64 and arch64.