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 5 additions and 22 deletions
Showing only changes of commit a97646abcf - Show all commits
@@ -38,27 +38,9 @@ runs:
- name: run buildctl build and push - name: run buildctl build and push
shell: bash shell: bash
run: | run: |
############################################### AUTH_JSON=$(printf '{"auths":{"%s":{"auth":"%s"}}}' \
# Build args "${{ inputs.registry_addr }}" \
############################################### "$(printf "%s:%s" "${{ inputs.registry_username }}" "${{ inputs.registry_password }}" | base64 -w0)")
BUILD_ARG_FLAGS=""
while IFS= read -r line; do
[[ -z "$line" ]] && continue
BUILD_ARG_FLAGS="$BUILD_ARG_FLAGS --opt build-arg:${line}"
done <<< "${{ inputs.build_args }}"
echo "Using build args: $BUILD_ARG_FLAGS"
###############################################
# Inline auth for BuildKit remote push
###############################################
AUTH_INLINE=$(printf "%s:%s" "${{ inputs.registry_username }}" "${{ inputs.registry_password }}" | base64 -w0)
###############################################
# Build + push using BuildKit REMOTE + INLINE AUTH
###############################################
buildctl \ buildctl \
--addr ${{ inputs.buildkit_addr }} \ --addr ${{ inputs.buildkit_addr }} \
@@ -68,4 +50,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,registry.auth=$AUTH_INLINE --output type=image,name=${{ inputs.tags }},push=true,registry.config=$AUTH_JSON
@@ -21,6 +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