Skip to content

Add multiarch docker images#241

Merged
amacneil merged 16 commits intoamacneil:mainfrom
Aposhian:add-arm-build
Dec 29, 2021
Merged

Add multiarch docker images#241
amacneil merged 16 commits intoamacneil:mainfrom
Aposhian:add-arm-build

Conversation

@Aposhian
Copy link
Copy Markdown
Contributor

@Aposhian Aposhian commented Oct 2, 2021

This publishes multiarch (arm64 and amd64) images to DockerHub and GitHub Container Registry

@amacneil
Copy link
Copy Markdown
Owner

Thank you! I recently landed #231 which vastly simplifies our build process (no more cross-OS cross compiling), and I've added some commits to your PR to merge these changes.

Comment thread .github/workflows/ci.yml Outdated
run: |
set -x
docker-compose build
docker buildx bake --load --set "*.platform=linux/amd64"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What does this do / why is it necessary?

Comment thread .github/workflows/ci.yml Outdated
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Would this cache be used for the previous docker build step? If not, it seems like it would do more harm than good (building twice with different caches rather than reusing the same cache).

I'm going to remove it for now until I can do further testing, but let me know your thoughts.

@amacneil amacneil merged commit 52cd75f into amacneil:main Dec 29, 2021
@Aposhian Aposhian deleted the add-arm-build branch January 3, 2022 20:04
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.

2 participants