docker / scan-cli-plugin

Docker Scan is a Command Line Interface to run vulnerability detection on your Dockerfiles and Docker images
Apache License 2.0
178 stars 43 forks source link

Build mac arm64 binary #189

Closed StefanScherer closed 2 years ago

StefanScherer commented 2 years ago

Signed-off-by: Stefan Scherer stefan.scherer@docker.com

- What I did

Build a Mac arm64 binary for Docker Desktop to make docker scan work without Rosetta 2.

- How I did it

As GH actions runners don't have arm64 nodes, we have to cross build the binary.

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory)

Screenshot 2021-12-22 at 12 36 42
glours commented 2 years ago

Unfortunately that's not enough to be able to produce a darwin arm64 binary https://github.com/docker/scan-cli-plugin/runs/4607290076?check_suite_focus=true#step:7:12

StefanScherer commented 2 years ago

Thanks @glours and I wondered why we have a mixture of setup Go 1.15 and 1.17. I'll update my PR.