Zenika / alpine-chrome

Chrome Headless docker images built upon alpine official image
https://hub.docker.com/r/zenika/alpine-chrome
Apache License 2.0
1.85k stars 243 forks source link

Multi platform docker build #201

Closed zigarn closed 2 years ago

zigarn commented 2 years ago

Fixes #152 Supersedes #182

DockerHub autobuild doesn't support build for ARM (docker/roadmap#109), so switch to GitHub Actions for multi-platform (amd64 & arm64) docker build.

Build amd64 & test for every PR. Build multi-platform & push only when push on master.

Adaptations:

@jlandure: I did put my own DOCKERHUB_(USERNAME|TOKEN) as secret, should change it for the technical account dsizenika.

Result: https://github.com/zigarn/alpine-chrome/actions/runs/2327992742 & https://hub.docker.com/repository/docker/zigarn/alpine-chrome-multi-arch/tags

zigarn commented 2 years ago

@hgwood: need to think to remove auto-build on DockerHub.

willjosefi commented 2 years ago

hey guys! seems like the PR is merged but I'm not seeing the images from arm64 inside docker hub plus... seems like gh actions had a failure

zigarn commented 2 years ago

Yes, there are some authentication issues blocking the push. @jlandure or @hgwood: if you can give me back access to the Zenika's org on DockerHub, I can get the GCR credentials from there (if it's still there) and test what's wrong with it.

hgwood commented 2 years ago

@zigarn Done :)

zigarn commented 2 years ago

Thanks! Looks like GCR does not accept _json_key_base64 username (https://cloud.google.com/container-registry/docs/advanced-authentication#json-key), unlike GAR (https://cloud.google.com/artifact-registry/docs/docker/authentication#json-key) and despite the doc of docker-login action (https://github.com/marketplace/actions/docker-login#service-account-based-authentication)

zigarn commented 2 years ago

Improved by using a not base64 version of the GCR_JSON_KEY: login is OK: https://github.com/Zenika/alpine-chrome/runs/6858273478?check_suite_focus=true But push is not...

zigarn commented 2 years ago

@willjosefi: arm64 images are now available! (https://github.com/zigarn/alpine-chrome/actions/runs/2327992742)

justinh998 commented 1 week ago

@willjosefi: arm64 images are now available! (https://github.com/zigarn/alpine-chrome/actions/runs/2327992742)

Hi why are there no up to date arm64 images? The Link : https://github.com/zigarn/alpine-chrome/actions/runs/2327992742 doesnt work.

zigarn commented 1 week ago

@willjosefi: arm64 images are now available! (https://github.com/zigarn/alpine-chrome/actions/runs/2327992742)

Hi why are there no up to date arm64 images? The Link : https://github.com/zigarn/alpine-chrome/actions/runs/2327992742 doesnt work.

This was the link on my fork. The build is going well on the main repository: https://github.com/Zenika/alpine-chrome/actions/runs/11155899792 You can see that latest images published on Docker Hub 5 days ago are with arm64 version: https://hub.docker.com/r/zenika/alpine-chrome/tags