From 980314cc1ae108a68008e5cb28f2eabe662540c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Fri, 1 May 2026 23:50:13 +0000 Subject: [PATCH] modified: .gitea/limbo_actions/buildkit-build-push/action.yaml --- .../buildkit-build-push/action.yaml | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.gitea/limbo_actions/buildkit-build-push/action.yaml b/.gitea/limbo_actions/buildkit-build-push/action.yaml index 171a69c..feab711 100644 --- a/.gitea/limbo_actions/buildkit-build-push/action.yaml +++ b/.gitea/limbo_actions/buildkit-build-push/action.yaml @@ -35,13 +35,32 @@ inputs: runs: using: "composite" steps: + - name: run buildctl build and push + shell: bash + run: | - name: run buildctl build and push shell: bash run: | - AUTH=$(printf '{"username":"%s","password":"%s"}' \ - "${{ inputs.registry_username }}" \ - "${{ inputs.registry_password }}" | base64 -w0) + # create docker config temp folder + DOCKER_CONFIG_DIR="${RUNNER_TEMP}/.buildctl_docker" + mkdir -p "$DOCKER_CONFIG_DIR" + + # clean up + trap 'rm -rf "$DOCKER_CONFIG_DIR"' EXIT + + # setup file docker config (auth) temp file + AUTH=$(printf "%s" "${{ inputs.registry_username }}:${{ inputs.registry_password }}" | base64 -w 0) + + cat > "$DOCKER_CONFIG_DIR/config.json" <