Skip to content

Commit 1bfbe97

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 1bfbe97

File tree

2 files changed

+43
-12
lines changed

2 files changed

+43
-12
lines changed

.github/workflows/build-image.yml

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

33
on:
4-
pull_request:
4+
push:
55
paths:
6-
- ci/images/Dockerfile.*
6+
- ci/images/**/Dockerfile.*
77

88
permissions: {}
99

1010
jobs:
11+
filter:
12+
if: github.repository == 'CycloneDX/cdxgen'
13+
runs-on: ubuntu-24.04
14+
outputs:
15+
imagefiles: ${{ steps.changed.outputs.files }}
16+
steps:
17+
- name: Get changed files
18+
id: changed
19+
uses: actions/github-script@v7
20+
with:
21+
script: |
22+
const response = await github.rest.repos.compareCommits({
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
base: context.payload.before,
26+
head: context.payload.after
27+
});
28+
const files = response.data.files
29+
.map(f => f.filename)
30+
.filter(f => f.includes("Dockerfile"));
31+
core.setOutput("files", JSON.stringify(files));
1132
image:
1233
if: github.repository == 'CycloneDX/cdxgen'
34+
needs: filter
1335
strategy:
1436
fail-fast: false
1537
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 }}
38+
imagefile: ${{ fromJson(needs.filter.outputs.imagefiles) }}
39+
platform: [ amd64, arm64 ]
40+
# Some images don't work on linux/arm64
41+
exclude:
42+
- imagefile: ci/images/Dockerfile.dotnet7
43+
platform: arm64
44+
- imagefile: ci/images/Dockerfile.dotnet8
45+
platform: arm64
46+
- imagefile: ci/images/Dockerfile.dotnet9
47+
platform: arm64
48+
- imagefile: ci/images/Dockerfile.ruby25
49+
platform: arm64
50+
- imagefile: ci/images/debian/Dockerfile.ruby26
51+
platform: arm64
52+
runs-on: ${{ matrix.platform == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
2453
steps:
54+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
55+
with:
56+
persist-credentials: false
2557
- name: Build image
26-
if: ${{ contains(matrix.imagefile, 'Dockerfile') }}
2758
uses: ./.github/actions/build-docker-image
2859
with:
2960
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)