forked from rhinstaller/anaconda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: switch from using templating to using reusable matrix
This will enable us to get rid of the custom jinja rendering and the workflow duplication with the templates.
- Loading branch information
Showing
7 changed files
with
60 additions
and
248 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Matrix builder | ||
on: | ||
workflow_call: | ||
# Map the workflow outputs to job outputs | ||
outputs: | ||
matrix: | ||
description: "Matrix of configurations" | ||
value: ${{ jobs.matrix-builder.outputs.matrix }} | ||
|
||
jobs: | ||
matrix-builder: | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
matrix: ${{ steps.convert.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Assign the matrix from .supported-branches.json | ||
id: convert | ||
run: | | ||
echo "matrix=$(yq -P -o=json .supported-branches.json | jq -c .)" >> $GITHUB_OUTPUT |
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"release": "fedora-40", | ||
"branch": "fedora-40", | ||
"variant": "fedora" | ||
}, | ||
{ | ||
"release": "master", | ||
"branch": "master", | ||
"variant": "fedora" | ||
}, | ||
{ | ||
"release": "rhel-9", | ||
"branch": "rhel-9", | ||
"variant": "rhel" | ||
}, | ||
{ | ||
"release": "rhel-10", | ||
"branch": "rhel-10", | ||
"variant": "rhel" | ||
} | ||
} |