firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.05k stars 118 forks source link

Add ARM64 binaries #704

Open olkitu opened 1 year ago

olkitu commented 1 year ago

Possible run multi-arch image to build example amd64 and arm64.

docker support this by using --platform attribute and this could be used in job level looking variable DOCKER_DEFAULT_PLATFORM to override default one.

firecow commented 1 year ago

This tools isn't published as a docker image.

But we could add arm64 binaries.

npm install -g gitlab-ci-local will already give a pure arm64 native experience.

olkitu commented 1 year ago

Yes but it use docker to run jobs and when use --platform could run builds with different arch than host system (example use qemu). Example I build always arm64 and amd64 versions of images with Gitlab CI and like to use gitlab-ci-local to test jobs without having custom jon to run locally only.

firecow commented 1 year ago

I don't quite understand.... gitlab-ci-local isn't calling docker build during execution

olkitu commented 1 year ago

Sorry, seems there is no issues when I made test project to build test image with arm64 and amd64: https://gitlab.com/olkitu/gitlab-ci-local-test . My test project build multi-arch image properly when set --platform inside of the container. Thank you for great project.

Maybe close this and open another issue just arm64 binaries only if like to have in repository?

firecow commented 1 year ago

Nah, leave it this open, I've renamed the issue..

firecow commented 1 month ago

https://github.com/firecow/gitlab-ci-local/issues/1242#issuecomment-2143510105

firecow commented 1 month ago

https://github.com/firecow/gitlab-ci-local/actions/runs/9331763450/job/25686810204?pr=1243

I don't think we can get Github Actions to-do it either :smile:

firecow commented 1 month ago

https://github.com/firecow/gitlab-ci-local/actions/runs/9331830871/job/25686953975

Here is me using the https://github.com/lando/pkg-action action