feature/new-oci-deployment #2
@@ -38,20 +38,15 @@ runs:
|
|||||||
- name: run buildctl build and push
|
- name: run buildctl build and push
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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'
|
AUTH_INLINE=$(printf '%s:%s' "$USER" "$PASS" | base64 -w0)
|
||||||
{
|
|
||||||
"auths": {
|
|
||||||
"__REGISTRY__": {
|
|
||||||
"auth": "__AUTH__"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
AUTH_JSON="${AUTH_JSON/__REGISTRY__/${{ inputs.registry_addr }}}"
|
echo "AUTH_INLINE generated successfully"
|
||||||
AUTH_JSON="${AUTH_JSON/__AUTH__/$AUTH_INLINE}"
|
|
||||||
|
|
||||||
buildctl \
|
buildctl \
|
||||||
--addr ${{ inputs.buildkit_addr }} \
|
--addr ${{ inputs.buildkit_addr }} \
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUNNER_TEMP: "${{ runner.temp }}"
|
RUNNER_TEMP: "${{ runner.temp }}"
|
||||||
WORKSPACE: "${{ gitea.workspace }}"
|
WORKSPACE: "${{ gitea.workspace }}"
|
||||||
|
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1
|
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