Skip to content

Commit

Permalink
ci: generate a generic linux snapshot image
Browse files Browse the repository at this point in the history
This change pushes a copy of `*-linux-gnu` as `*-linux`.

Currently the snapshots are only pushing `*-linux-gnu` and
`*-linux-musl` images.
  • Loading branch information
flavorjones committed Dec 12, 2024
1 parent 3f71871 commit d0a5a48
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ jobs:
puts RakeCompilerDock::Starter.container_image_name(:platform => %q(${{matrix.platform}})); \
print "snapshot_name="; \
puts RakeCompilerDock::Starter.container_image_name(:platform => %q(${{matrix.platform}}), :version => %q(snapshot)); \
if %q(${{matrix.platform}}).end_with?("-gnu"); \
print "generic_linux_snapshot_name="; \
puts RakeCompilerDock::Starter.container_image_name(:platform => %q(${{matrix.platform}}), :version => %q(snapshot)).chomp("-gnu"); \
end \
' | tee -a $GITHUB_OUTPUT
- name: Build docker image
env:
RCD_DOCKER_BUILD: docker buildx build --cache-from=type=local,src=tmp/build-cache --cache-to=type=local,dest=tmp/build-cache-new --load
Expand All @@ -69,3 +72,6 @@ jobs:
docker images
docker tag ${{steps.rcd_config.outputs.image_name}} ${{steps.rcd_config.outputs.snapshot_name}}
docker push ${{steps.rcd_config.outputs.snapshot_name}}
- if: ${{ steps.rcd_config.output.generic_linux_snapshot_name }}
run: |
docker tag ${{steps.rcd_config.outputs.image_name}} ${{steps.rcd_config.outputs.generic_linux_snapshot_name}}

0 comments on commit d0a5a48

Please sign in to comment.