diff --git a/.github/workflows/build_containers.yml b/.github/workflows/build_containers.yml new file mode 100644 index 0000000..a11fb37 --- /dev/null +++ b/.github/workflows/build_containers.yml @@ -0,0 +1,23 @@ +name: build_containers + +on: + push: + branches: [ master ] + schedule: + - "0 3 * * 1" # every monday at a 3am + +permissions: + contents: read + packages: write + +jobs: + build_container: + strategy: + fail-fast: false + matrix: + container: + - base-bullseye + uses: ./.github/workflows/build_single_container.yml + with: + container: "${{ matrix.container }}" + secrets: inherit diff --git a/.github/workflows/build_single_container.yml b/.github/workflows/build_single_container.yml new file mode 100644 index 0000000..dfd8866 --- /dev/null +++ b/.github/workflows/build_single_container.yml @@ -0,0 +1,25 @@ +on: + workflow_dispatch: + inputs: + container: + description: "Which container to build" + type: string + required: true + workflow_call: + inputs: + container: + description: "Which container to build" + required: true + type: string + +permissions: + contents: read + packages: write + +jobs: + build_container: + name: "Build ${{ inputs.container }}" + uses: fsinfuhh/workflows/.github/workflows/build_image.yml@main + with: + image_base_name: "${{ inputs.container }}" + secrets: inherit