40 lines
854 B
YAML
40 lines
854 B
YAML
on:
|
|
push:
|
|
pull_request:
|
|
release:
|
|
types:
|
|
- published
|
|
- prereleased
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
collect:
|
|
name: Collect all images
|
|
runs-on: podman
|
|
outputs:
|
|
matrix: ${{ steps.generate-list.ouputs.matrix }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Generate list
|
|
id: generate-list
|
|
shell: bash
|
|
run: |
|
|
echo matrix="$(ls | jq -Rn '[inputs]')" >> "${GITHUB_OUTPUT}"
|
|
|
|
build:
|
|
name: Build all images
|
|
runs-on: podman
|
|
needs: collect
|
|
matrix:
|
|
image: "${{ fromJson( needs.collect.outputs.matrix ) }}"
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build image
|
|
shell: bash
|
|
run: |
|
|
cd "${{ matrix.image }}"
|
|
podman build --rm -t "${{ matrix.image }}" . |