Skip to content

Commit 4d5ec96

Browse files
authored
Skip missing UBI images when syncing to ECR & GHCR (#316)
1 parent 2fc2528 commit 4d5ec96

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.github/workflows/sync-ecr.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,20 @@ jobs:
155155
- uses: actions/checkout@master
156156
- name: Define Matrix
157157
id: define-matrix
158-
# Filter out the nodejs 22 and version from the matrix, as it is not supported on UBI.
158+
# Filter out the nodejs 22 and 23 versions from the matrix, as they are not supported on UBI.
159159
# https://access.redhat.com/articles/3376841
160-
# Filter out the python 3.10 version from the matrix, as it is not supported on UBI.
160+
# Filter out the python 3.10 and 3.13 versions from the matrix, as they are not supported on UBI.
161161
# 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
162162
run: |
163-
echo matrix=$(python ./.github/scripts/matrix/gen-sync-matrix.py |
164-
jq '.image |= map(select(. != "pulumi-python-3.10" and . != "pulumi-nodejs-22"))'
165-
) >> "$GITHUB_OUTPUT"
163+
echo matrix=$(python ./.github/scripts/matrix/gen-matrix.py --no-arch |
164+
jq '.include |= map(
165+
select(
166+
(.sdk != "nodejs" or .language_version != "22") and
167+
(.sdk != "nodejs" or .language_version != "23") and
168+
(.sdk != "python" or .language_version != "3.10") and
169+
(.sdk != "python" or .language_version != "3.13")
170+
)
171+
)') >> "$GITHUB_OUTPUT"
166172
167173
# NOTE: If UBI images become multi platform, this job can be replaced by adding a similar step to "-debian" for "-ubi" the previous job.
168174
ubi-images:

.github/workflows/sync-ghcr.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,20 @@ jobs:
134134
- uses: actions/checkout@master
135135
- name: Define Matrix
136136
id: define-matrix
137-
# Filter out the nodejs 22 and version from the matrix, as it is not supported on UBI.
138-
# https://access.redhat.com/articles/3376841
139-
# Filter out the python 3.10 version from the matrix, as it is not supported on UBI.
140-
# 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
137+
# Filter out the nodejs 22 and 23 versions from the matrix, as they are not supported on UBI.
138+
# https://access.redhat.com/articles/3376841
139+
# Filter out the python 3.10 and 3.13 versions from the matrix, as they are not supported on UBI.
140+
# 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
141141
run: |
142-
echo matrix=$(python ./.github/scripts/matrix/gen-sync-matrix.py |
143-
jq '.image |= map(select(. != "pulumi-python-3.10" and . != "pulumi-nodejs-22"))'
144-
) >> "$GITHUB_OUTPUT"
142+
echo matrix=$(python ./.github/scripts/matrix/gen-matrix.py --no-arch |
143+
jq '.include |= map(
144+
select(
145+
(.sdk != "nodejs" or .language_version != "22") and
146+
(.sdk != "nodejs" or .language_version != "23") and
147+
(.sdk != "python" or .language_version != "3.10") and
148+
(.sdk != "python" or .language_version != "3.13")
149+
)
150+
)') >> "$GITHUB_OUTPUT"
145151
146152
# NOTE: If UBI images become multi platform, this job can be replaced by adding a similar step to "-debian" for "-ubi" the previous job.
147153
ubi-images:

0 commit comments

Comments
 (0)