modified: .gitea/actions/buildkit-build-push-dev/action.yaml
/ ssh-client-container-build-push (push) Successful in 12s
/ ssh-client-container-build-push (push) Successful in 12s
modified: .gitea/workflows/ssh-client-build-deploy.yaml
This commit is contained in:
@@ -46,7 +46,6 @@ runs:
|
||||
AUTH_INLINE=$(printf '%s:%s' "$USER" "$PASS" | base64 -w0)
|
||||
echo "AUTH_INLINE generated successfully"
|
||||
|
||||
# Build JSON safely
|
||||
read -r -d '' AUTH_JSON <<'EOF'
|
||||
{
|
||||
"auths": {
|
||||
@@ -57,14 +56,12 @@ runs:
|
||||
}
|
||||
EOF
|
||||
|
||||
# Escape slashes in registry
|
||||
REG_ESCAPED="${{ inputs.registry_addr }}"
|
||||
REG_ESCAPED="${REG_ESCAPED//\//\\/}"
|
||||
|
||||
AUTH_JSON="${AUTH_JSON/__REGISTRY__/$REG_ESCAPED}"
|
||||
AUTH_JSON="${AUTH_JSON/__AUTH__/$AUTH_INLINE}"
|
||||
|
||||
# FIX: avoid unbound variable
|
||||
BUILD_ARGS="${{ inputs.build_args:-}}"
|
||||
|
||||
BUILD_ARG_FLAGS=""
|
||||
@@ -84,5 +81,4 @@ runs:
|
||||
--local dockerfile=${{ inputs.dockerfile }} \
|
||||
--opt filename=${{ inputs.filename }} \
|
||||
$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
|
||||
|
||||
- name: Fetch limbo public actions
|
||||
|
||||
env:
|
||||
RUNNER_TEMP: "${{ runner.temp }}"
|
||||
WORKSPACE: "${{ gitea.workspace }}"
|
||||
|
||||
Reference in New Issue
Block a user