From 3ba44942ff40b66737a460aff79d243624103028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 2 May 2026 12:45:00 +0000 Subject: [PATCH] 1 --- .../buildkit-build-push-dev/action.yaml | 19 +++++++------------ .gitea/workflows/ssh-client-build-deploy.yaml | 3 +-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.gitea/actions/buildkit-build-push-dev/action.yaml b/.gitea/actions/buildkit-build-push-dev/action.yaml index 0c697a2..00ded0b 100644 --- a/.gitea/actions/buildkit-build-push-dev/action.yaml +++ b/.gitea/actions/buildkit-build-push-dev/action.yaml @@ -38,20 +38,15 @@ runs: - name: run buildctl build and push shell: bash run: | - AUTH_INLINE=$(printf '%s:%s' "${{ inputs.registry_username }}" "${{ inputs.registry_password }}" | base64 -w0) + set -euo pipefail + echo "USERNAME RAW: ${{ inputs.registry_username }}" + echo "PASSWORD RAW: ${{ inputs.registry_password }}" + USER="${{ inputs.registry_username }}" + PASS="${{ inputs.registry_password }}" - read -r -d '' AUTH_JSON <<'EOF' - { - "auths": { - "__REGISTRY__": { - "auth": "__AUTH__" - } - } - } - EOF + AUTH_INLINE=$(printf '%s:%s' "$USER" "$PASS" | base64 -w0) - AUTH_JSON="${AUTH_JSON/__REGISTRY__/${{ inputs.registry_addr }}}" - AUTH_JSON="${AUTH_JSON/__AUTH__/$AUTH_INLINE}" + echo "AUTH_INLINE generated successfully" buildctl \ --addr ${{ inputs.buildkit_addr }} \ diff --git a/.gitea/workflows/ssh-client-build-deploy.yaml b/.gitea/workflows/ssh-client-build-deploy.yaml index e646d86..71c45f7 100644 --- a/.gitea/workflows/ssh-client-build-deploy.yaml +++ b/.gitea/workflows/ssh-client-build-deploy.yaml @@ -21,8 +21,7 @@ jobs: env: RUNNER_TEMP: "${{ runner.temp }}" WORKSPACE: "${{ gitea.workspace }}" - - + run: | curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1