Skip to content

Commit c22161d

Browse files
renovate[bot]malice00
authored andcommitted
chore(deps): update registry.suse.com/bci/dotnet-sdk docker tag to v8.0.21
1 parent 929636d commit c22161d

File tree

2 files changed

+50
-12
lines changed

2 files changed

+50
-12
lines changed

.github/workflows/build-image.yml

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,67 @@
1-
name: Build image(s) on PR
1+
name: Build image(s) on PR/push
22

33
on:
44
pull_request:
55
paths:
6-
- ci/images/Dockerfile.*
6+
- ci/images/**/Dockerfile.*
7+
push:
8+
paths:
9+
- ci/images/**/Dockerfile.*
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
714

815
permissions: {}
916

1017
jobs:
18+
filter:
19+
if: github.repository == 'CycloneDX/cdxgen'
20+
runs-on: ubuntu-24.04
21+
outputs:
22+
imagefiles: ${{ steps.changed.outputs.files }}
23+
steps:
24+
- name: Get changed files
25+
id: changed
26+
uses: actions/github-script@v7
27+
with:
28+
script: |
29+
const response = await github.rest.repos.compareCommits({
30+
owner: context.repo.owner,
31+
repo: context.repo.repo,
32+
base: context.payload.before,
33+
head: context.payload.after
34+
});
35+
const files = response.data.files
36+
.map(f => f.filename)
37+
.filter(f => f.includes("Dockerfile"));
38+
core.setOutput("files", JSON.stringify(files));
1139
image:
1240
if: github.repository == 'CycloneDX/cdxgen'
41+
needs: filter
1342
strategy:
1443
fail-fast: false
1544
matrix:
16-
imagefile: ${{ github.event.head_commit.modified }}
17-
runner: [ubuntu-24.04, ubuntu-24.04-arm]
18-
include:
19-
- runner: ubuntu-24.04
20-
platform: linux/amd64
21-
- runner: ubuntu-24.04-arm
22-
platform: linux/arm64
23-
runs-on: ${{ matrix.runner }}
45+
imagefile: ${{ fromJson(needs.filter.outputs.imagefiles) }}
46+
platform: [ amd64, arm64 ]
47+
# Some images don't work on linux/arm64
48+
exclude:
49+
- imagefile: ci/images/Dockerfile.dotnet7
50+
platform: arm64
51+
- imagefile: ci/images/Dockerfile.dotnet8
52+
platform: arm64
53+
- imagefile: ci/images/Dockerfile.dotnet9
54+
platform: arm64
55+
- imagefile: ci/images/Dockerfile.ruby25
56+
platform: arm64
57+
- imagefile: ci/images/debian/Dockerfile.ruby26
58+
platform: arm64
59+
runs-on: ${{ matrix.platform == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
2460
steps:
61+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
62+
with:
63+
persist-credentials: false
2564
- name: Build image
26-
if: ${{ contains(matrix.imagefile, 'Dockerfile') }}
2765
uses: ./.github/actions/build-docker-image
2866
with:
2967
dockerfile: ${{ matrix.imagefile }}

ci/images/Dockerfile.dotnet8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base-image
2-
FROM registry.suse.com/bci/dotnet-sdk:8.0.20@sha256:255e01937ff1b7626e75ec87cf17a60b8e86437fb123f66e2c2f9c672bcd9309 AS base
2+
FROM registry.suse.com/bci/dotnet-sdk:8.0.21@sha256:980f77d6eb57252d9d486651f22aa4674a476c5a3b2dfd35b8322fb4c008cda6 AS base
33

44
ARG GITHUB_URL=https://github.com
55
ARG NODEJS_DIST_URL

0 commit comments

Comments
 (0)