autobuild #2
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: Build images that changed | |
on: | |
- pull_request | |
- push | |
jobs: | |
image-list: | |
name: build images | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.change-list.outputs.all_changed_files }} | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
with: | |
# full git history needed to get proper list of changed files | |
fetch-depth: 0 | |
- name: Get list of changes | |
id: change-list | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: | | |
**/*.json | |
build-images: | |
name: Image builder | |
needs: image-list | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: ${{ fromJson(needs.image-list.outputs.matrix) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install fedcloudclient | |
run: | | |
curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 > jq | |
chmod +x jq | |
pip install yq git+https://github.com/tdviet/fedcloudclient.git |