Skip to content

Conversation

@giordano
Copy link
Contributor

With the current setup, images for different platforms are pushed with the same tag, overriding each other. With this change, instead, images built for different architectures are merged together. I still need to do some more testing, but something like this should do the trick.

@giordano giordano force-pushed the mg/gha-merge-docker-arch branch 2 times, most recently from 644af9f to 620d127 Compare December 24, 2025 12:28
With the current setup, images for different platforms are pushed with the same
tag, overriding each other.  With this change, instead, images built for
different architectures are merged together.

[skip ci]
@giordano giordano force-pushed the mg/gha-merge-docker-arch branch from 620d127 to b82dc4d Compare December 24, 2025 12:30
Comment on lines -102 to -108
tags: |
type=raw,value=${{ steps.pkg.outputs.name }}-julia${{ matrix.julia }}-cuda${{ steps.cuda.outputs.major }}
type=raw,value=${{ steps.pkg.outputs.name }},enable=${{ matrix.default == true && (github.ref_type == 'tag' || inputs.tag != '') }}
type=raw,value=latest,enable=${{ matrix.default == true && (github.ref_type == 'tag' || (inputs.tag != '' && inputs.mark_as_latest)) }}
type=raw,value=dev,enable=${{ matrix.default == true && github.ref_type == 'branch' && inputs.tag == '' }}
labels: |
org.opencontainers.image.version=${{ steps.pkg.outputs.version }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I honestly don't quite understand what was going on here. If anything needs to be adapted, it should be done in the tags input in the Build and push image step below.

@giordano
Copy link
Contributor Author

See for example https://github.com/giordano/CUDA.jl/pkgs/container/cuda.jl/622078126?tag=dev-julia1.11-cuda12, where the tag has both architectures, instead of only the last one which happened to have been pushed.

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.

1 participant