Update GitHub Actions workflow to include dependency on detect-change… #6
Workflow file for this run
This file contains 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: Test build | |
on: push | |
jobs: | |
detect-changes: | |
runs-on: ubuntu-latest | |
outputs: | |
# Expose matched filters as job 'variants' output variable | |
image_variants: ${{ steps.filter.outputs.changes }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
# https://github.com/marketplace/actions/paths-changes-filter#conditional-execution | |
id: filter | |
with: | |
filters: | | |
Dockerfile: Dockerfile | |
Dockerfile-deb: Dockerfile-deb | |
build: | |
needs: detect-changes | |
name: Setup, Build | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
max-parallel: 6 | |
# select a core set of images to build | |
matrix: | |
IMAGE_VARIANT: ${{ fromJSON(needs.detect-changes.outputs.image_variants) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# Build the Docker image | |
- name: Build | |
run: | | |
docker build -f ${{ matrix.IMAGE_VARIANT }} . |