Skip to content

fix: amd64 binary compatibility on newer linux distributions#476

Merged
jlehtimaki merged 6 commits into
mainfrom
fix-amd64-binary-compatibility
Oct 27, 2023
Merged

fix: amd64 binary compatibility on newer linux distributions#476
jlehtimaki merged 6 commits into
mainfrom
fix-amd64-binary-compatibility

Conversation

@jlehtimaki

Copy link
Copy Markdown
Contributor

This PR introduces the following changes to fix issues when running archwayd amd64 binary on newer linux releases than Ubuntu 20.04 :

  • Use plain goreleaser for amd64 builds. This solves the compatibility issues with the binary when it's natively built on amd64 architecture.
  • Use separate goreleaser-cross to build for every other OS / ARCH that Archway supports. It also handles the docker manifest deployments, where it needs to use insecure to flags since the amd64 are built on another workflow step.
  • Rename deploy.yaml workflow to more descriptive dev-build.yaml
  • Change goreleaser and goreleaser-cross to use ghcr.io images instead of dockerhub ones

This workflow was tested on my fork and you can check the results there:
https://github.com/jlehtimaki/archway/releases
https://github.com/jlehtimaki?tab=packages&repo_name=archway

@jlehtimaki jlehtimaki requested review from a team, philabsbot and spoo-bar October 20, 2023 13:12
@jlehtimaki jlehtimaki force-pushed the fix-amd64-binary-compatibility branch from 6437d26 to 9e751a1 Compare October 20, 2023 13:19
@jlehtimaki jlehtimaki changed the title fix: amd64 binary compatibility fix: amd64 binary compatibility on newer linux distributions Oct 20, 2023
this is to have consistent naming scheme in the workflows
to have more consistent naming scheme between the checksums

@shahbazn shahbazn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Comment thread .github/workflows/release-dev.yaml Outdated
replaced RELEASE with GORELEASER_SHIP_VALIDATE
@jlehtimaki jlehtimaki merged commit 5495ad8 into main Oct 27, 2023
@jlehtimaki jlehtimaki deleted the fix-amd64-binary-compatibility branch October 27, 2023 13:12
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.

4 participants