swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.46k stars 1.19k forks source link

Feat: multi-arch docker image #1756

Closed tnaroska closed 4 months ago

tnaroska commented 7 months ago

Describe the PR

Fix https://github.com/swaggo/swag/issues/1755 by enabling go cross-compilation in Dockerfile and setting multiple target architectures in docker/build-push-action.

Relation issue https://github.com/swaggo/swag/issues/1755 - Create multi-arch docker image for amd64/arm64

Additional context Validated the Dockerfile change by building a multi-arch image locally. I have no way to test the change in github worklfow though. Thanks to @ngehrsitz, changes to github workflow could be validated on this fork repo, too.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.40%. Comparing base (91624ad) to head (0bdf7cc).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1756 +/- ## ======================================= Coverage 83.40% 83.40% ======================================= Files 16 16 Lines 3881 3881 ======================================= Hits 3237 3237 Misses 545 545 Partials 99 99 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sdghchj commented 6 months ago

Update and resolve the conflicts, please.

tnaroska commented 6 months ago

Update and resolve the conflicts, please.

@sdghchj done

ubogdan commented 4 months ago

@tnaroska Thanks for your contribution.