File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 11name : Build image(s) on PR
22
33on :
4- pull_request :
4+ push :
55 paths :
66 - ci/images/Dockerfile.*
77
88permissions : {}
99
1010jobs :
11+ detect-changes :
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 : detect-changes
1335 strategy :
1436 fail-fast : false
1537 matrix :
16- imagefile : ${{ github.event.head_commit.modified }}
17- runner : [ubuntu-24.04, ubuntu-24.04-arm]
38+ imagefile : ${{ fromJson(needs.detect-changes.outputs.matrix) }}
39+ runner : [ ubuntu-24.04, ubuntu-24.04-arm ]
1840 include :
1941 - runner : ubuntu-24.04
2042 platform : linux/amd64
Original file line number Diff line number Diff line change 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
44ARG GITHUB_URL=https://github.com
55ARG NODEJS_DIST_URL
You can’t perform that action at this time.
0 commit comments