Skip to content

chore(cleanup): remove old baseimage and docker.d/versions.d pi… #56

chore(cleanup): remove old baseimage and docker.d/versions.d pi…

chore(cleanup): remove old baseimage and docker.d/versions.d pi… #56

Workflow file for this run

name: "Build all `baseimage` Containers"
on:
push:
paths:
- "docker.d/**/Dockerfile"
- "versions.d/*.json"
workflow_dispatch:
workflow_run:
workflows: ["Check versions of relevant programming languages"]
types: [completed]
jobs:
generate-matrix:
name: "Generate Job Matrix for `baseimage` construction"
runs-on: "ubuntu-latest"
outputs:
matrix: "${{ steps.generate-matrix.outputs.matrix }}"
steps:
- id: "checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 3
- name: Run changed-files with dir_names
id: changed-files
uses: tj-actions/changed-files@v35
with:
path: "docker.d/"
dir_names: "true"
diff_relative: "true"
json: "true"
- id: "generate-matrix"
name: "Generate Matrix of Docker Images to Build"
run: |
echo "${{ steps.changed-files.outputs.all_modified_files }}"
echo "matrix=${{ steps.changed-files.outputs.all_modified_files }}" >> "$GITHUB_OUTPUT"
build-baseimages:
needs: "generate-matrix"
strategy:
matrix:
docker_tag: "${{ fromJson(needs.generate-matrix.outputs.matrix) }}"
name: "${{ matrix.name }}"
uses: "./.github/workflows/baseimage-builder.yaml"
with:
docker_tag: "${{ matrix.docker_tag }}"
build_context: "docker.d/${{ matrix.docker_tag }}"
secrets: inherit