Skip to content

Commit 17ccfab

Browse files
hsbtclaude
andcommitted
Skip cleaning up the default docker image to avoid redundant pulls
The default image (clang-20) is reused across multiple steps within the same job. Only remove non-default images after use. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 896fd78 commit 17ccfab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/actions/compilers/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ runs:
153153
GITHUB_PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }}
154154
GITHUB_REF: ${{ github.ref }}
155155

156+
# Clean up non-default docker images to save disk space.
157+
# The default image (clang-20) is reused across multiple steps
158+
# within the same job, so we keep it to avoid redundant pulls.
156159
- name: clean up docker image
157160
shell: bash
158161
run: docker rmi "ghcr.io/ruby/ruby-ci-image:${INPUT_TAG}" || true
159-
if: always()
162+
if: ${{ always() && inputs.tag != 'clang-20' }}
160163
env:
161164
INPUT_TAG: ${{ inputs.tag }}

0 commit comments

Comments
 (0)