Skip to content

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

Open
ciffelia wants to merge 2 commits intothomseddon:masterfrom
ciffelia:build-multiarch-on-actions
Open

Build and push multi-arch image on GitHub Actions#275
ciffelia wants to merge 2 commits intothomseddon:masterfrom
ciffelia:build-multiarch-on-actions

Conversation

@ciffelia
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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