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

Build and push multi-arch image on GitHub Actions #275

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ciffelia
Copy link

This PR adds a workflow to build a multi-arch docker image on every push and pull request.
Also, this workflow pushes image to Docker Hub with appropriate semver tags on tag push.

This PR is similar to #116, but uses following official actions to setup build environment, generate semver tags, login to docker hub, and build/push image.

Note that DOCKER_HUB_USERNAME and DOCKER_HUB_TOKEN secrets must be set to push images to Docker Hub.

Closes #112

This workflow builds multi-arch docker image on every push and pull request.
Also, this workflow pushes image to docker hub with appropriate semver tags on tag push.
@Beanow
Copy link

Beanow commented Jun 3, 2022

For reference, I ran this workflow (modified to push to ghcr.io) here.
https://github.com/Beanow/traefik-forward-auth/runs/6725379055?check_suite_focus=true
https://github.com/Beanow/traefik-forward-auth/pkgs/container/traefik-forward-auth

Modifications: Beanow@1e1b0c7

And this solved the issue of not being able to deploy to Docker Swarm arm nodes.

@lostb1t
Copy link

lostb1t commented Nov 13, 2023

Can. confirm. This works for Hetzner ARM VPS

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.

Multi-architecture image for non-homogenous environments
3 participants