Skip to content

Commit

Permalink
Skip missing UBI images when syncing to ECR & GHCR (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp authored Nov 6, 2024
1 parent 2fc2528 commit 4d5ec96
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/sync-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,20 @@ jobs:
- uses: actions/checkout@master
- name: Define Matrix
id: define-matrix
# Filter out the nodejs 22 and version from the matrix, as it is not supported on UBI.
# Filter out the nodejs 22 and 23 versions from the matrix, as they are not supported on UBI.
# https://access.redhat.com/articles/3376841
# Filter out the python 3.10 version from the matrix, as it is not supported on UBI.
# Filter out the python 3.10 and 3.13 versions from the matrix, as they are not supported on UBI.
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_introduction-to-python_installing-and-using-dynamic-programming-languages#con_python-versions_assembly_introduction-to-python
run: |
echo matrix=$(python ./.github/scripts/matrix/gen-sync-matrix.py |
jq '.image |= map(select(. != "pulumi-python-3.10" and . != "pulumi-nodejs-22"))'
) >> "$GITHUB_OUTPUT"
echo matrix=$(python ./.github/scripts/matrix/gen-matrix.py --no-arch |
jq '.include |= map(
select(
(.sdk != "nodejs" or .language_version != "22") and
(.sdk != "nodejs" or .language_version != "23") and
(.sdk != "python" or .language_version != "3.10") and
(.sdk != "python" or .language_version != "3.13")
)
)') >> "$GITHUB_OUTPUT"
# NOTE: If UBI images become multi platform, this job can be replaced by adding a similar step to "-debian" for "-ubi" the previous job.
ubi-images:
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/sync-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,20 @@ jobs:
- uses: actions/checkout@master
- name: Define Matrix
id: define-matrix
# Filter out the nodejs 22 and version from the matrix, as it is not supported on UBI.
# https://access.redhat.com/articles/3376841
# Filter out the python 3.10 version from the matrix, as it is not supported on UBI.
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_introduction-to-python_installing-and-using-dynamic-programming-languages#con_python-versions_assembly_introduction-to-python
# Filter out the nodejs 22 and 23 versions from the matrix, as they are not supported on UBI.
# https://access.redhat.com/articles/3376841
# Filter out the python 3.10 and 3.13 versions from the matrix, as they are not supported on UBI.
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_introduction-to-python_installing-and-using-dynamic-programming-languages#con_python-versions_assembly_introduction-to-python
run: |
echo matrix=$(python ./.github/scripts/matrix/gen-sync-matrix.py |
jq '.image |= map(select(. != "pulumi-python-3.10" and . != "pulumi-nodejs-22"))'
) >> "$GITHUB_OUTPUT"
echo matrix=$(python ./.github/scripts/matrix/gen-matrix.py --no-arch |
jq '.include |= map(
select(
(.sdk != "nodejs" or .language_version != "22") and
(.sdk != "nodejs" or .language_version != "23") and
(.sdk != "python" or .language_version != "3.10") and
(.sdk != "python" or .language_version != "3.13")
)
)') >> "$GITHUB_OUTPUT"
# NOTE: If UBI images become multi platform, this job can be replaced by adding a similar step to "-debian" for "-ubi" the previous job.
ubi-images:
Expand Down

0 comments on commit 4d5ec96

Please sign in to comment.