From ff00260e77ea33089861d85d64ccce5372ee1f7c Mon Sep 17 00:00:00 2001 From: Niall Date: Thu, 12 Feb 2026 17:12:42 +0000 Subject: [PATCH] Use var dockerconfig location Github runners fail with hardcided docker config location. This change makes it dynamic to avoid errors like: reading JSON file "/root/.docker/config.json": open /root/.docker/config.json: permission denied --- .github/actions/build-push-image/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/build-push-image/action.yml b/.github/actions/build-push-image/action.yml index 9d75dfa..fad94d6 100644 --- a/.github/actions/build-push-image/action.yml +++ b/.github/actions/build-push-image/action.yml @@ -47,7 +47,8 @@ runs: username: ${{ inputs.registry-user }} password: ${{ inputs.registry-password }} registry: "docker.io" - auth_file_path: /root/.docker/config.json + # Use runner temp to be compatible with both GitHub-hosted and self-hosted runners. + auth_file_path: ${{ runner.temp }}/docker-config.json - name: buildah build id: build-image