Skip to content

chore(deps): update registry.suse.com/bci/dotnet-sdk docker tag to v9… #24

chore(deps): update registry.suse.com/bci/dotnet-sdk docker tag to v9…

chore(deps): update registry.suse.com/bci/dotnet-sdk docker tag to v9… #24

Workflow file for this run

name: Build image(s) on PR/push
on:
pull_request:
paths:
- ci/images/**/Dockerfile.*
push:
paths:
- ci/images/**/Dockerfile.*
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
filter:
if: github.repository == 'CycloneDX/cdxgen'
runs-on: ubuntu-24.04
outputs:
imagefiles: ${{ steps.changed.outputs.files }}
steps:
- name: Get changed files
id: changed
uses: actions/github-script@v7
with:
script: |
const response = await github.rest.repos.compareCommits({
owner: context.repo.owner,
repo: context.repo.repo,
base: context.payload.before,
head: context.payload.after
});
const files = response.data.files
.map(f => f.filename)
.filter(f => f.includes("Dockerfile"));
core.setOutput("files", JSON.stringify(files));
image:
if: github.repository == 'CycloneDX/cdxgen'
needs: filter
strategy:
fail-fast: false
matrix:
imagefile: ${{ fromJson(needs.filter.outputs.imagefiles) }}
platform: [ amd64, arm64 ]
# Some images don't work on linux/arm64
exclude:
- imagefile: ci/images/Dockerfile.dotnet7
platform: arm64
- imagefile: ci/images/Dockerfile.dotnet8
platform: arm64
- imagefile: ci/images/Dockerfile.dotnet9
platform: arm64
- imagefile: ci/images/Dockerfile.ruby25
platform: arm64
- imagefile: ci/images/debian/Dockerfile.ruby26
platform: arm64
runs-on: ${{ matrix.platform == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Build image
uses: ./.github/actions/build-docker-image
with:
dockerfile: ${{ matrix.imagefile }}
platforms: ${{ matrix.platform }}
target: cdxgen