Skip to content

📦 Add base image and initial features #8

📦 Add base image and initial features

📦 Add base image and initial features #8

Workflow file for this run

---
name: Images
on:
pull_request:
branches:
- main
paths:
- images/**
permissions: {}
jobs:
detect-changes:
name: Detect Changes
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
images: ${{ steps.detect_changes.outputs.changes }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build path-filters file
id: build_path_filters
run: bash scripts/path-filter/configuration-generator.sh images
- name: Detect changes
id: detect_changes
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
with:
filters: .github/path-filters/images.yml
build-and-test:
needs: [detect-changes]
if: ${{ needs.detect-changes.outputs.images != '[]' }}
name: Build and Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: ${{ fromJson(needs.detect-changes.outputs.images) }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build and Test
id: build_and_test
run: |
bash scripts/images/build-and-test.sh ${{ matrix.image }}