Skip to content

Commit 896fd78

Browse files
hsbtclaude
andcommitted
Remove stephanmisc/docuum dependency to avoid DockerHub rate limits
Replace the docuum service container with a simple `docker rmi` step after each compilation. This avoids pulling an external image from DockerHub, which was causing rate limit issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f9175a9 commit 896fd78

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

.github/actions/compilers/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,10 @@ runs:
152152
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
153153
GITHUB_PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }}
154154
GITHUB_REF: ${{ github.ref }}
155+
156+
- name: clean up docker image
157+
shell: bash
158+
run: docker rmi "ghcr.io/ruby/ruby-ci-image:${INPUT_TAG}" || true
159+
if: always()
160+
env:
161+
INPUT_TAG: ${{ inputs.tag }}

.github/workflows/compilers.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
needs: compile-if
5050
if: ${{ needs.compile-if.result == 'success' }}
5151
timeout-minutes: 60
52-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
52+
5353
steps:
5454
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5555
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -72,7 +72,7 @@ jobs:
7272
needs: compile-if
7373
if: ${{ needs.compile-if.result == 'success' }}
7474
timeout-minutes: 60
75-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
75+
7676
steps:
7777
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7878
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -102,7 +102,7 @@ jobs:
102102
needs: compile-if
103103
if: ${{ needs.compile-if.result == 'success' }}
104104
timeout-minutes: 60
105-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
105+
106106
steps:
107107
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
108108
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -124,7 +124,7 @@ jobs:
124124
needs: compile-if
125125
if: ${{ needs.compile-if.result == 'success' }}
126126
timeout-minutes: 60
127-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
127+
128128
steps:
129129
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130130
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -145,7 +145,7 @@ jobs:
145145
needs: compile-if
146146
if: ${{ needs.compile-if.result == 'success' }}
147147
timeout-minutes: 60
148-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
148+
149149
steps:
150150
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
151151
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -171,7 +171,7 @@ jobs:
171171
needs: compile-if
172172
if: ${{ needs.compile-if.result == 'success' }}
173173
timeout-minutes: 60
174-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
174+
175175
steps:
176176
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
177177
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -191,7 +191,7 @@ jobs:
191191
needs: compile-if
192192
if: ${{ needs.compile-if.result == 'success' }}
193193
timeout-minutes: 60
194-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
194+
195195
steps:
196196
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
197197
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -213,7 +213,7 @@ jobs:
213213
needs: compile-if
214214
if: ${{ needs.compile-if.result == 'success' }}
215215
timeout-minutes: 60
216-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
216+
217217
steps:
218218
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
219219
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -232,7 +232,7 @@ jobs:
232232
needs: compile-if
233233
if: ${{ needs.compile-if.result == 'success' }}
234234
timeout-minutes: 60
235-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
235+
236236
steps:
237237
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
238238
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -252,7 +252,7 @@ jobs:
252252
needs: compile-if
253253
if: ${{ needs.compile-if.result == 'success' }}
254254
timeout-minutes: 60
255-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
255+
256256
steps:
257257
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
258258
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -270,7 +270,7 @@ jobs:
270270
needs: compile-if
271271
if: ${{ needs.compile-if.result == 'success' }}
272272
timeout-minutes: 60
273-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
273+
274274
steps:
275275
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
276276
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }
@@ -289,7 +289,7 @@ jobs:
289289
needs: compile-if
290290
if: ${{ needs.compile-if.result == 'success' }}
291291
timeout-minutes: 60
292-
services: { docuum: { image: 'stephanmisc/docuum', options: '--init', volumes: [ '/root', '/var/run/docker.sock:/var/run/docker.sock' ] } }
292+
293293
steps:
294294
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
295295
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github, persist-credentials: false }

0 commit comments

Comments
 (0)