Skip to content

Commit

Permalink
Build action
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Jul 31, 2024
1 parent 819ecce commit 1ae4a8f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
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

0 comments on commit 1ae4a8f

Please sign in to comment.