Skip to content

Commit 880e6e0

Browse files
committed
tweaking buildx builder
1 parent 78fa300 commit 880e6e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ runs:
8888
run: bash ${{ github.action_path }}/scripts/build_and_push.sh
8989
shell: bash
9090
env:
91+
BUILDX_NAME: ${{ steps.buildx.outputs.name }}
92+
BUILDX_ENDPOINT: ${{ steps.buildx.outputs.endpoint }}
9193
DOCKERFILE_LOCATION: ${{ inputs.dockerfile }}
9294
DOCKER_CONTEXT: ${{ inputs.docker_context }}
9395
PYTHON_VERSION: ${{ inputs.python_version }}

scripts/build_and_push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ echo Python Version: $PYTHON_VERSION
5757
echo Publish Target: $PUBLISH_TARGET
5858
echo Build Target: $BUILD_TARGET
5959

60-
echo "Creating buildx builder."
60+
echo "Setting buildx builder."
6161
# Create or Reuse buildx builder
62-
docker buildx use multiarch || docker buildx create --name multiarch --use
62+
docker buildx use $BUILDX_NAME
6363

6464
echo "Beginning build."
6565
# Display docker command for debugging

0 commit comments

Comments
 (0)