Open yuravk opened 3 months ago
I ran into this issue on a similar host and found this to work when running as root in the buildah container, added to with:
auth_file_path: /run/containers/0/auth.json
Tried that as well. Fails with:
2024-08-05T07:44:52.0017077Z [command]/usr/bin/podman login *** -u *** -p *** --verbose --authfile=/run/containers/0/auth.json
2024-08-05T07:44:52.5977018Z Used: /run/containers/0/auth.json
2024-08-05T07:44:52.6026821Z Login Succeeded!
2024-08-05T07:44:52.6054295Z ✅ Successfully logged in to *** as ***
2024-08-05T07:44:52.6055253Z Exporting REGISTRY_AUTH_FILE=/run/containers/0/auth.json
2024-08-05T07:44:52.6057019Z ✍️ Writing registry credentials to "/root/.docker/config.json"
2024-08-05T07:44:52.6104257Z ##[error]Error: ENOENT: no such file or directory, open '/root/.docker/config.json'
The workflow: https://github.com/yuravk/bootc-images/actions/runs/10244618540/job/28337995308
I reported an issue on that error to (#42 ), my current workaround there is to use a local custom buildah container that includes this line from (#39 )
RUN echo "{ \"auths\": {} }" > $HOME/.docker/config.json
Then I use that container as the runner instead of the upstream buildah stable image on quay
Version
redhat-actions/podman-login@v1
Describe the bug
The action fails on self-hosted runner because of the error:
However log in to quay.io succeed.
Steps to reproduce, workflow links, screenshots
The action runs on AlmaLinux (Red Hat binary compatible OS) arm64 based self-hosted runner:
The workflow raw log:
The workflow link: https://github.com/yuravk/bootc-images/actions/runs/10201571885/job/28223790588#step:4:25