feature/new-oci-deployment #2

Merged
marcio.fernandes merged 30 commits from feature/new-oci-deployment into main 2026-05-03 01:17:48 +00:00
2 changed files with 2 additions and 5 deletions
Showing only changes of commit fd01489123 - Show all commits
@@ -46,7 +46,6 @@ runs:
AUTH_INLINE=$(printf '%s:%s' "$USER" "$PASS" | base64 -w0) AUTH_INLINE=$(printf '%s:%s' "$USER" "$PASS" | base64 -w0)
echo "AUTH_INLINE generated successfully" echo "AUTH_INLINE generated successfully"
# Build JSON safely
read -r -d '' AUTH_JSON <<'EOF' read -r -d '' AUTH_JSON <<'EOF'
{ {
"auths": { "auths": {
@@ -57,14 +56,12 @@ runs:
} }
EOF EOF
# Escape slashes in registry
REG_ESCAPED="${{ inputs.registry_addr }}" REG_ESCAPED="${{ inputs.registry_addr }}"
REG_ESCAPED="${REG_ESCAPED//\//\\/}" REG_ESCAPED="${REG_ESCAPED//\//\\/}"
AUTH_JSON="${AUTH_JSON/__REGISTRY__/$REG_ESCAPED}" AUTH_JSON="${AUTH_JSON/__REGISTRY__/$REG_ESCAPED}"
AUTH_JSON="${AUTH_JSON/__AUTH__/$AUTH_INLINE}" AUTH_JSON="${AUTH_JSON/__AUTH__/$AUTH_INLINE}"
# FIX: avoid unbound variable
BUILD_ARGS="${{ inputs.build_args:-}}" BUILD_ARGS="${{ inputs.build_args:-}}"
BUILD_ARG_FLAGS="" BUILD_ARG_FLAGS=""
@@ -84,5 +81,4 @@ runs:
--local dockerfile=${{ inputs.dockerfile }} \ --local dockerfile=${{ inputs.dockerfile }} \
--opt filename=${{ inputs.filename }} \ --opt filename=${{ inputs.filename }} \
$BUILD_ARG_FLAGS \ $BUILD_ARG_FLAGS \
--output type=image,name=${{ inputs.tags }},push=true" --output type=image,name=${{ inputs.tags }},push=true,registry.config="$AUTH_JSON"
@@ -17,6 +17,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Fetch limbo public actions - name: Fetch limbo public actions
env: env:
RUNNER_TEMP: "${{ runner.temp }}" RUNNER_TEMP: "${{ runner.temp }}"
WORKSPACE: "${{ gitea.workspace }}" WORKSPACE: "${{ gitea.workspace }}"