Skip to content

Commit 1a458e3

Browse files
lmicciniclaude
andcommitted
Fix opm render failure due to v1-format registries.conf
Recent versions of the containers/image library (used by opm) now hard-error on v1-format registries.conf instead of silently converting it. GitHub Actions ubuntu-latest runners ship with a v1-format config at /etc/containers/registries.conf, breaking the "Create index image" step for all operators using this reusable workflow. Set CONTAINERS_REGISTRIES_CONF=/dev/null for the opm steps. This is safe because opm render pulls by fully-qualified image reference and does not need local registry aliasing. See also: operator-framework/operator-lifecycle-manager#3839 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 98b4af3 commit 1a458e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/reusable-build-operator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ jobs:
298298
INDEX_IMAGE_TAG: ${{ env.latesttag }}
299299
INDEX_IMAGE: ${{ inputs.operator_name }}-operator-index
300300
CSV_VERSION: v${{ steps.get_csv_version.outputs.version }}
301+
# opm uses containers/image which now rejects v1-format registries.conf
302+
# shipped on ubuntu-latest runners. Safe to bypass since opm render
303+
# pulls by fully-qualified reference and needs no registry aliases.
304+
CONTAINERS_REGISTRIES_CONF: /dev/null
301305

302306
- name: Push ${{ inputs.operator_name }}-operator-index To ${{ env.imageregistry }}
303307
uses: redhat-actions/push-to-registry@v2

0 commit comments

Comments
 (0)