Skip to content

Commit a23615f

Browse files
committed
Rename Docker build stages and GH matrix targets
1 parent 31dfc6c commit a23615f

2 files changed

Lines changed: 36 additions & 36 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
target:
22-
- group-legacy
23-
- group-a
24-
- group-b
25-
- group-c
26-
- group-d
27-
- group-e
22+
- ruby-0.x-2.0
23+
- ruby-1.2-1.9
24+
- ruby-2.1-2.4
25+
- ruby-2.5-2.7
26+
- ruby-3.0-3.2
27+
- ruby-3.3-4.0
2828
steps:
2929
- uses: actions/checkout@v4
3030

@@ -65,9 +65,9 @@ jobs:
6565
push: true
6666
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
6767
cache-from: |
68-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-group-legacy
69-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-group-a
70-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-group-b
71-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-group-c
72-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-group-d
73-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-group-e
68+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-ruby-0.x-2.0
69+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-ruby-1.2-1.9
70+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-ruby-2.1-2.4
71+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-ruby-2.5-2.7
72+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-ruby-3.0-3.2
73+
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-ruby-3.3-4.0

Dockerfile

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ COPY patch /all-ruby/patch/
4141
RUN rake setup_build
4242

4343
# =============================================================================
44-
# Group: legacy (0.x, 1.0, 1.1, 1.8.0-1.8.5, 2.0.0) on Debian Buster
44+
# Ruby 0.x, 1.0, 1.1, 1.8.0-1.8.5, 2.0.0 on Debian Buster
4545
# =============================================================================
46-
FROM builder-buster AS group-legacy
46+
FROM builder-buster AS ruby-0.x-2.0
4747
ARG j=numcpu_plus_alpha
4848

4949
COPY versions/0.* versions/1.0* versions/1.1* versions/1.8.0* versions/1.8.1* versions/1.8.2* versions/1.8.3* versions/1.8.4* versions/1.8.5* versions/2.0.0* /all-ruby/versions/
@@ -88,9 +88,9 @@ COPY patch /all-ruby/patch/
8888
RUN rake setup_build
8989

9090
# =============================================================================
91-
# Group A: 1.2-1.8.7, 1.9.x
91+
# Ruby 1.2-1.8.7, 1.9.x
9292
# =============================================================================
93-
FROM builder-bullseye AS group-a
93+
FROM builder-bullseye AS ruby-1.2-1.9
9494
ARG j=numcpu_plus_alpha
9595

9696
COPY versions/1.2* versions/1.3* versions/1.4* versions/1.6* versions/1.8.6* versions/1.8.7* versions/1.9* /all-ruby/versions/
@@ -104,9 +104,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
104104
RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
105105

106106
# =============================================================================
107-
# Group B: 2.1-2.4
107+
# Ruby 2.1-2.4
108108
# =============================================================================
109-
FROM builder-bullseye AS group-b
109+
FROM builder-bullseye AS ruby-2.1-2.4
110110
ARG j=numcpu_plus_alpha
111111

112112
COPY versions/2.1* versions/2.2* versions/2.3* versions/2.4* /all-ruby/versions/
@@ -118,9 +118,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
118118
RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
119119

120120
# =============================================================================
121-
# Group C: 2.5-2.7
121+
# Ruby 2.5-2.7
122122
# =============================================================================
123-
FROM builder-bullseye AS group-c
123+
FROM builder-bullseye AS ruby-2.5-2.7
124124
ARG j=numcpu_plus_alpha
125125

126126
COPY versions/2.5* versions/2.6* versions/2.7* /all-ruby/versions/
@@ -132,9 +132,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
132132
RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
133133

134134
# =============================================================================
135-
# Group D: 3.0-3.2
135+
# Ruby 3.0-3.2
136136
# =============================================================================
137-
FROM builder-bullseye AS group-d
137+
FROM builder-bullseye AS ruby-3.0-3.2
138138
ARG j=numcpu_plus_alpha
139139

140140
COPY versions/3.0* versions/3.1* versions/3.2* /all-ruby/versions/
@@ -146,9 +146,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
146146
RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
147147

148148
# =============================================================================
149-
# Group E: 3.3-4.0
149+
# Ruby 3.3-4.0
150150
# =============================================================================
151-
FROM builder-bullseye AS group-e
151+
FROM builder-bullseye AS ruby-3.3-4.0
152152
ARG j=numcpu_plus_alpha
153153

154154
COPY versions/3.3* versions/3.4* versions/3.5* versions/4.0* /all-ruby/versions/
@@ -195,18 +195,18 @@ RUN dpkg --add-architecture i386 \
195195
${system_ruby} \
196196
&& rm -rf /var/lib/apt/lists/*
197197

198-
COPY --from=group-legacy /build-all-ruby/ /build-all-ruby/
199-
COPY --from=group-legacy /all-ruby/ /all-ruby/
200-
COPY --from=group-a /build-all-ruby/ /build-all-ruby/
201-
COPY --from=group-a /all-ruby/bin/ /all-ruby/bin/
202-
COPY --from=group-b /build-all-ruby/ /build-all-ruby/
203-
COPY --from=group-b /all-ruby/bin/ /all-ruby/bin/
204-
COPY --from=group-c /build-all-ruby/ /build-all-ruby/
205-
COPY --from=group-c /all-ruby/bin/ /all-ruby/bin/
206-
COPY --from=group-d /build-all-ruby/ /build-all-ruby/
207-
COPY --from=group-d /all-ruby/bin/ /all-ruby/bin/
208-
COPY --from=group-e /build-all-ruby/ /build-all-ruby/
209-
COPY --from=group-e /all-ruby/bin/ /all-ruby/bin/
198+
COPY --from=ruby-0.x-2.0 /build-all-ruby/ /build-all-ruby/
199+
COPY --from=ruby-0.x-2.0 /all-ruby/ /all-ruby/
200+
COPY --from=ruby-1.2-1.9 /build-all-ruby/ /build-all-ruby/
201+
COPY --from=ruby-1.2-1.9 /all-ruby/bin/ /all-ruby/bin/
202+
COPY --from=ruby-2.1-2.4 /build-all-ruby/ /build-all-ruby/
203+
COPY --from=ruby-2.1-2.4 /all-ruby/bin/ /all-ruby/bin/
204+
COPY --from=ruby-2.5-2.7 /build-all-ruby/ /build-all-ruby/
205+
COPY --from=ruby-2.5-2.7 /all-ruby/bin/ /all-ruby/bin/
206+
COPY --from=ruby-3.0-3.2 /build-all-ruby/ /build-all-ruby/
207+
COPY --from=ruby-3.0-3.2 /all-ruby/bin/ /all-ruby/bin/
208+
COPY --from=ruby-3.3-4.0 /build-all-ruby/ /build-all-ruby/
209+
COPY --from=ruby-3.3-4.0 /all-ruby/bin/ /all-ruby/bin/
210210

211211
COPY lib/* /all-ruby/lib/
212212
COPY all-ruby /all-ruby/

0 commit comments

Comments
 (0)