Skip to content

Commit d31ce83

Browse files
committed
ci: generate a generic linux snapshot image
This change pushes a copy of `*-linux-gnu` as `*-linux`. Currently the snapshots are only pushing `*-linux-gnu` and `*-linux-musl` images.
1 parent 3f71871 commit d31ce83

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-images.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ jobs:
4949
puts RakeCompilerDock::Starter.container_image_name(:platform => %q(${{matrix.platform}})); \
5050
print "snapshot_name="; \
5151
puts RakeCompilerDock::Starter.container_image_name(:platform => %q(${{matrix.platform}}), :version => %q(snapshot)); \
52+
if %q(${{matrix.platform}}).end_with?("-gnu") \
53+
print "generic_linux_snapshot_name="; \
54+
puts RakeCompilerDock::Starter.container_image_name(:platform => %q(${{matrix.platform}}), :version => %q(snapshot)).chomp("-gnu"); \
55+
end \
5256
' | tee -a $GITHUB_OUTPUT
53-
5457
- name: Build docker image
5558
env:
5659
RCD_DOCKER_BUILD: docker buildx build --cache-from=type=local,src=tmp/build-cache --cache-to=type=local,dest=tmp/build-cache-new --load
@@ -69,3 +72,6 @@ jobs:
6972
docker images
7073
docker tag ${{steps.rcd_config.outputs.image_name}} ${{steps.rcd_config.outputs.snapshot_name}}
7174
docker push ${{steps.rcd_config.outputs.snapshot_name}}
75+
- if: ${{ steps.rcd_config.output.generic_linux_snapshot_name }}
76+
run: |
77+
docker tag ${{steps.rcd_config.outputs.image_name}} ${{steps.rcd_config.outputs.generic_linux_snapshot_name}}

0 commit comments

Comments
 (0)