chore(deps): update opensuse/tumbleweed:latest docker digest to 0e9a4d8 #58
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build image(s) on push | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| 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@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| const base = context.payload.before; | |
| let files = []; | |
| // Special case: first push on a branch | |
| if (!base || base === "0000000000000000000000000000000000000000000000") { | |
| const commitFiles = []; | |
| for (const commit of context.payload.commits || []) { | |
| commitFiles.push(...(commit.added || [])); | |
| commitFiles.push(...(commit.modified || [])); | |
| commitFiles.push(...(commit.removed || [])); | |
| } | |
| files = [...new Set(commitFiles)]; | |
| } else { | |
| const { data } = await github.rest.repos.compareCommits({ | |
| owner = context.repo.owner, | |
| repo = context.repo.repo, | |
| base, | |
| head: context.payload.after | |
| }); | |
| files = data.files.map(f => f.filename); | |
| } | |
| files = files.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: Setup tool versions | |
| id: versions | |
| run: | | |
| cd .versions | |
| cat >> "$GITHUB_OUTPUT" << EOF | |
| docker-args<<VALUE | |
| $(awk 'FNR==2 {print "\""toupper(FILENAME)"="$1"\""}' *) | |
| VALUE | |
| EOF | |
| - name: Build image | |
| uses: ./.github/actions/build-docker-image | |
| with: | |
| dockerfile: ${{ matrix.imagefile }} | |
| docker-args: | | |
| ${{ steps.versions.outputs.docker-args }} | |
| platforms: ${{ matrix.platform }} | |
| target: cdxgen |