modified: .gitea/limbo_actions/buildkit-build-push/action.yaml
/ build-docker-image (push) Failing after 14s
/ build-docker-image (push) Failing after 14s
This commit is contained in:
@@ -38,10 +38,15 @@ runs:
|
|||||||
- name: run buildctl build and push
|
- name: run buildctl build and push
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
cat > /tmp/registry-config.json <<EOF
|
||||||
AUTH=$(printf '{"username":"%s","password":"%s"}' \
|
{
|
||||||
"${{ inputs.registry_username }}" \
|
"auths": {
|
||||||
"${{ inputs.registry_password }}" | base64 -w0)
|
"oci.limbosolutions.com": {
|
||||||
|
"auth": "$(printf '%s:%s' "${{ inputs.registry_username }}" "${{ inputs.registry_password }}" | base64 -w0)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
# Build build-arg flags
|
# Build build-arg flags
|
||||||
BUILD_ARG_FLAGS=""
|
BUILD_ARG_FLAGS=""
|
||||||
@@ -52,12 +57,14 @@ runs:
|
|||||||
|
|
||||||
echo "Using build args: $BUILD_ARG_FLAGS"
|
echo "Using build args: $BUILD_ARG_FLAGS"
|
||||||
|
|
||||||
|
# Build + push com credenciais por build
|
||||||
buildctl \
|
buildctl \
|
||||||
--addr ${{ inputs.buildkit_addr }} \
|
--addr ${{ inputs.buildkit_addr }} \
|
||||||
|
--registry-config /tmp/registry-config.json \
|
||||||
build \
|
build \
|
||||||
--frontend=dockerfile.v0 \
|
--frontend=dockerfile.v0 \
|
||||||
--local context=${{ inputs.context }} \
|
--local context=${{ inputs.context }} \
|
||||||
--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
|
--output type=image,name=${{ inputs.tags }},push=true
|
||||||
Reference in New Issue
Block a user