This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 32638e4b2669561770a9205d1785607f4167db07 Author: phantomjinx <[email protected]> AuthorDate: Thu Nov 25 11:30:34 2021 +0000 Fix for building bundle failure # Permission denied when trying to create the bundle index image # see issue operator-registry/issues/870 --- .github/actions/kamel-build-bundle/action.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/kamel-build-bundle/action.yaml b/.github/actions/kamel-build-bundle/action.yaml index 54cc48f..2191680 100644 --- a/.github/actions/kamel-build-bundle/action.yaml +++ b/.github/actions/kamel-build-bundle/action.yaml @@ -179,8 +179,13 @@ runs: # # Construct an index image containing the newly built bundle image + # Bug: + # https://github.com/operator-framework/operator-registry/issues/870 + # Workaround: + # image catalog layers contain root owned files so fails with `permission denied` error. + # Running with sudo fixes this error (alternative is to switch to podman) # - opm index add \ + sudo opm index add \ -c docker --skip-tls \ --bundles ${{ env.BUILD_BUNDLE_LOCAL_IMAGE }} \ --from-index quay.io/operatorhubio/catalog:latest \
