Skip to content

Conversation

@brainstorm
Copy link
Member

Fixes #11

Also: try to package on different fronts to facilitate distribution.

@brainstorm
Copy link
Member Author

…tes.io token for now, might change it later)
@brainstorm
Copy link
Member Author

Homebrew/homebrew-core#249219

Well, I'll close the homebrew-core formula PR because copyrite still "hasn't gone viral" according to CI tests:

  • GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)

It'll have to be a separate homebrew tap for now.

@brainstorm
Copy link
Member Author

context: .
file: pkg/docker/Dockerfile
provenance: false
platforms: ${{ matrix.platforms }}
Copy link
Member

Choose a reason for hiding this comment

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

This should just a string like linux/amd64,linux/arm64.

Here's how I do this in the docker-who repo

Copy link
Member

Choose a reason for hiding this comment

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

matrix is a GitHub action built-in for scattering / parallelising processes but you aren't actually scattering over anything?

Copy link
Member

Choose a reason for hiding this comment

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

See https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations#adding-a-matrix-strategy-to-your-workflow-job for more information about matrices.

But I don't think you want that in this case, unless you want to actively resolve the separate architecture builds into a manifest yourself. Instead, I'd let the docker/build-push-action step do that for you.

Copy link
Member

Choose a reason for hiding this comment

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

Also sorry, meant to just click 'comment' not 'approve'.

Copy link
Member Author

Choose a reason for hiding this comment

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

Aaagh, gotcha. Ok, I'm not using matrix as I should, thanks, I'll try with a simple string, makes a ton of sense, otherwise it'd generate two docker images instead of one with multiple manifests!:

single-vs-multiplatform-image

context: .
file: pkg/docker/Dockerfile
provenance: false
platforms: ${{ matrix.platforms }}
Copy link
Member

Choose a reason for hiding this comment

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

matrix is a GitHub action built-in for scattering / parallelising processes but you aren't actually scattering over anything?

context: .
file: pkg/docker/Dockerfile
provenance: false
platforms: ${{ matrix.platforms }}
Copy link
Member

Choose a reason for hiding this comment

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

See https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations#adding-a-matrix-strategy-to-your-workflow-job for more information about matrices.

But I don't think you want that in this case, unless you want to actively resolve the separate architecture builds into a manifest yourself. Instead, I'd let the docker/build-push-action step do that for you.

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.

Think about packaging

3 participants