https://github.com/tob1as/docker-build-example
Example for multiarch Images (buildx) with docker-hooks, GitLab-CI and GitHub/Gitea/Forgejo Actions.
https://github.com/tob1as/docker-build-example
autobuild build buildx docker docker-images docker-registry dockerhub example forgejo-actions gitea gitea-actions github-action github-actions github-actions-docker gitlab-ci hooks multiarch multiarch-images multiplatform
Last synced: about 2 months ago
JSON representation
Example for multiarch Images (buildx) with docker-hooks, GitLab-CI and GitHub/Gitea/Forgejo Actions.
- Host: GitHub
- URL: https://github.com/tob1as/docker-build-example
- Owner: Tob1as
- License: apache-2.0
- Created: 2019-07-14T12:42:28.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-19T20:23:08.000Z (5 months ago)
- Last Synced: 2025-04-07T20:21:24.553Z (3 months ago)
- Topics: autobuild, build, buildx, docker, docker-images, docker-registry, dockerhub, example, forgejo-actions, gitea, gitea-actions, github-action, github-actions, github-actions-docker, gitlab-ci, hooks, multiarch, multiarch-images, multiplatform
- Language: Dockerfile
- Homepage:
- Size: 52.7 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Autobuild on Docker Hub
**Example for advanced options (hooks) and buildx for Autobuild on Docker Hub to build Multiarch Images (x86_64 and ARM)**
## Information
With buildx you can build multiarch Images on Docker Hub from a GitHub/Bitbucket Repository.
More Details:
* [Advanced options for Autobuild](https://docs.docker.com/docker-hub/builds/advanced/)
* [buildx](https://docs.docker.com/buildx/working-with-buildx/)
* [Building Multi-Architecture Docker Images With Buildx](https://medium.com/@artur.klauser/building-multi-architecture-docker-images-with-buildx-27d80f7e2408)
* [Custom Registry Cert for local build](https://github.com/docker/buildx/issues/80)
* [qemu-user-static by multiarch](https://github.com/multiarch/qemu-user-static)## Project tree
```
.
├── hooks
├── pre_build
├── build
└── push
├── Dockerfile
└── ... more Dockerfiles
```## Alternative
* for GitHub use the GitHub Actions (`.github/workflows/build_docker_images.yaml`):
* [checkout](https://github.com/actions/checkout)
* [setup-qemu-action](https://github.com/docker/setup-qemu-action)
* [setup-buildx-action](https://github.com/docker/setup-buildx-action)
* [login-action](https://github.com/docker/login-action)
* [build-push-action](https://github.com/docker/build-push-action)
* https://docs.github.com/en/actions/learn-github-actions/environment-variables
* [dockerhub-description](https://github.com/peter-evans/dockerhub-description)
* for GitLab use the `.gitlab-ci.yml` as an example, then `hooks/` is not needed.## Example Images
* [tobi312/minio](https://github.com/Tob1asDocker/minio)
* [tobi312/tools](https://github.com/Tob1asDocker/tools)