modified: .gitea/limbo_actions/buildkit-build-push/action.yaml
/ build-docker-image (push) Successful in 20s
/ build-docker-image (push) Successful in 20s
This commit is contained in:
@@ -35,9 +35,6 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: run buildctl build and push
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
- name: run buildctl build and push
|
- name: run buildctl build and push
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -51,7 +48,6 @@ runs:
|
|||||||
|
|
||||||
# setup file docker config (auth) temp file
|
# setup file docker config (auth) temp file
|
||||||
AUTH=$(printf "%s" "${{ inputs.registry_username }}:${{ inputs.registry_password }}" | base64 -w 0)
|
AUTH=$(printf "%s" "${{ inputs.registry_username }}:${{ inputs.registry_password }}" | base64 -w 0)
|
||||||
|
|
||||||
cat > "$DOCKER_CONFIG_DIR/config.json" <<EOF
|
cat > "$DOCKER_CONFIG_DIR/config.json" <<EOF
|
||||||
{
|
{
|
||||||
"auths": {
|
"auths": {
|
||||||
@@ -71,6 +67,7 @@ runs:
|
|||||||
|
|
||||||
echo "Using build args: $BUILD_ARG_FLAGS"
|
echo "Using build args: $BUILD_ARG_FLAGS"
|
||||||
|
|
||||||
|
# Run BuildKit build
|
||||||
DOCKER_CONFIG=$DOCKER_CONFIG_DIR buildctl \
|
DOCKER_CONFIG=$DOCKER_CONFIG_DIR buildctl \
|
||||||
--addr ${{ inputs.buildkit_addr }} \
|
--addr ${{ inputs.buildkit_addr }} \
|
||||||
build \
|
build \
|
||||||
@@ -79,4 +76,6 @@ 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
|
--output type=image,name=${{ inputs.tags }},push=true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user