From 3c10ca756a868be61439b2c728a989a8906b9b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 15 Mar 2026 09:19:25 +0000 Subject: [PATCH] modified: .gitea/actions/buildkit-build-push/action.yaml --- .../actions/buildkit-build-push/action.yaml | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitea/actions/buildkit-build-push/action.yaml b/.gitea/actions/buildkit-build-push/action.yaml index ca148e7..097cbeb 100644 --- a/.gitea/actions/buildkit-build-push/action.yaml +++ b/.gitea/actions/buildkit-build-push/action.yaml @@ -31,19 +31,24 @@ runs: - name: Authenticate to Gitea registry shell: bash run: | - # Create a temporary file inside GITHUB_TEMP - DOCKER_CONFIG_FILE="${RUNNER_TEMP}/docker_config.json" - # Ensure cleanup ALWAYS happens - trap 'rm -f "$DOCKER_CONFIG_FILE"' EXIT + DOCKER_CONFIG_DIR="${RUNNER_TEMP}/.buildctl_docker" + mkdir -p "$DOCKER_CONFIG_DIR" + + # clean up + trap 'rm -rf "$DOCKER_CONFIG_DIR"' EXIT - # Generate auth entry AUTH=$(printf "%s" "${{ inputs.registry_username }}:${{ inputs.registry_password }}" | base64 -w 0) - printf '{"auths":{"%s":{"auth":"%s"}}}' \ - "${{ inputs.registry_addr }}" \ - "$AUTH" \ - > "$DOCKER_CONFIG_FILE" + cat > "$DOCKER_CONFIG_DIR/config.json" <