Skip to content

Commit 8fba963

Browse files
committed
[CI] Unify Docker versioning within each file
1 parent 02b28c4 commit 8fba963

5 files changed

Lines changed: 35 additions & 15 deletions

File tree

.github/workflows/docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- '.github/workflows/docker.yml'
1212
workflow_dispatch:
1313

14+
env:
15+
DOCKER_IMAGE_VERSION: "1.1"
16+
DOCKER_IMAGE_REGISTRY: "ghcr.io/learning-process/ppc-ubuntu"
17+
1418
permissions:
1519
contents: read
1620
packages: write
@@ -47,4 +51,4 @@ jobs:
4751
file: ./docker/ubuntu.Dockerfile
4852
platforms: linux/amd64,linux/arm64
4953
push: ${{ github.ref == 'refs/heads/master' }}
50-
tags: ghcr.io/learning-process/ppc-ubuntu:1.1
54+
tags: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}

.github/workflows/perf.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
on:
22
workflow_call:
33

4+
env:
5+
DOCKER_IMAGE_VERSION: "1.1"
6+
DOCKER_IMAGE_REGISTRY: "ghcr.io/learning-process/ppc-ubuntu"
7+
48
jobs:
59
ubuntu-gcc-build-perf-stats:
610
runs-on: ubuntu-24.04
711
container:
8-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
12+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
913
credentials:
1014
username: ${{ github.actor }}
1115
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ on:
55
pull_request:
66
workflow_call:
77

8+
env:
9+
DOCKER_IMAGE_VERSION: "1.1"
10+
DOCKER_IMAGE_REGISTRY: "ghcr.io/learning-process/ppc-ubuntu"
11+
812
jobs:
913
pre-commit:
1014
runs-on: ubuntu-24.04
1115
container:
12-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
16+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
1317
credentials:
1418
username: ${{ github.actor }}
1519
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/static-analysis-pr.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- '**/.clang-tidy'
1313
- '.github/workflows/static-analysis-pr.yml'
1414

15+
env:
16+
DOCKER_IMAGE_VERSION: "1.1"
17+
DOCKER_IMAGE_REGISTRY: "ghcr.io/learning-process/ppc-ubuntu"
18+
1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1721
cancel-in-progress: >-
@@ -23,7 +27,7 @@ jobs:
2327
clang-tidy:
2428
runs-on: ubuntu-24.04
2529
container:
26-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
30+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
2731
credentials:
2832
username: ${{ github.actor }}
2933
password: ${{ secrets.GITHUB_TOKEN }}
@@ -71,7 +75,7 @@ jobs:
7175
- clang-tidy
7276
runs-on: ubuntu-24.04
7377
container:
74-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
78+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
7579
credentials:
7680
username: ${{ github.actor }}
7781
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ubuntu.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
on:
22
workflow_call:
33

4+
env:
5+
DOCKER_IMAGE_VERSION: "1.1"
6+
DOCKER_IMAGE_REGISTRY: "ghcr.io/learning-process/ppc-ubuntu"
7+
48
jobs:
59
gcc-build:
610
runs-on: ${{ matrix.os }}
711
container:
8-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
12+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
913
credentials:
1014
username: ${{ github.actor }}
1115
password: ${{ secrets.GITHUB_TOKEN }}
@@ -60,7 +64,7 @@ jobs:
6064
- gcc-build
6165
runs-on: ${{ matrix.os }}
6266
container:
63-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
67+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
6468
credentials:
6569
username: ${{ github.actor }}
6670
password: ${{ secrets.GITHUB_TOKEN }}
@@ -92,7 +96,7 @@ jobs:
9296
- gcc-test
9397
runs-on: ${{ matrix.os }}
9498
container:
95-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
99+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
96100
credentials:
97101
username: ${{ github.actor }}
98102
password: ${{ secrets.GITHUB_TOKEN }}
@@ -116,7 +120,7 @@ jobs:
116120
clang-build:
117121
runs-on: ${{ matrix.os }}
118122
container:
119-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
123+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
120124
credentials:
121125
username: ${{ github.actor }}
122126
password: ${{ secrets.GITHUB_TOKEN }}
@@ -162,7 +166,7 @@ jobs:
162166
- clang-build
163167
runs-on: ${{ matrix.os }}
164168
container:
165-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
169+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
166170
credentials:
167171
username: ${{ github.actor }}
168172
password: ${{ secrets.GITHUB_TOKEN }}
@@ -194,7 +198,7 @@ jobs:
194198
- clang-test
195199
runs-on: ${{ matrix.os }}
196200
container:
197-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
201+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
198202
credentials:
199203
username: ${{ github.actor }}
200204
password: ${{ secrets.GITHUB_TOKEN }}
@@ -220,7 +224,7 @@ jobs:
220224
- clang-build
221225
runs-on: ${{ matrix.os }}
222226
container:
223-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
227+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
224228
credentials:
225229
username: ${{ github.actor }}
226230
password: ${{ secrets.GITHUB_TOKEN }}
@@ -268,7 +272,7 @@ jobs:
268272
- clang-sanitizer-build
269273
runs-on: ${{ matrix.os }}
270274
container:
271-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
275+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
272276
credentials:
273277
username: ${{ github.actor }}
274278
password: ${{ secrets.GITHUB_TOKEN }}
@@ -306,7 +310,7 @@ jobs:
306310
- clang-sanitizer-test
307311
runs-on: ${{ matrix.os }}
308312
container:
309-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
313+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
310314
credentials:
311315
username: ${{ github.actor }}
312316
password: ${{ secrets.GITHUB_TOKEN }}
@@ -334,7 +338,7 @@ jobs:
334338
- clang-test-extended
335339
runs-on: ubuntu-24.04
336340
container:
337-
image: ghcr.io/learning-process/ppc-ubuntu:1.1
341+
image: ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_VERSION }}
338342
credentials:
339343
username: ${{ github.actor }}
340344
password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)