@@ -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 }} \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user