diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d00336890..09ab50b98 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - yuming/manual_deploy env: DOCKER_REPOSITORY: quay.io/unstructured-io/unstructured-api @@ -92,9 +93,9 @@ jobs: source .venv/bin/activate export DOCKER_IMAGE="$DOCKER_BUILD_REPOSITORY:${{ matrix.arch }}-$SHORT_SHA" if [ "$DOCKER_PLATFORM" == "linux/arm64" ]; then - SKIP_INFERENCE_TESTS=true make docker-test + SKIP_INFERENCE_TESTS=true DOCKER_PLATFORM=$DOCKER_PLATFORM make docker-test else - make docker-test + DOCKER_PLATFORM=$DOCKER_PLATFORM make docker-test fi - name: Push image run: | diff --git a/scripts/docker-smoke-test.sh b/scripts/docker-smoke-test.sh index dbfb2a4f6..eb813992a 100755 --- a/scripts/docker-smoke-test.sh +++ b/scripts/docker-smoke-test.sh @@ -16,6 +16,7 @@ CONTAINER_NAME_PARALLEL=unstructured-api-smoke-test-parallel PIPELINE_FAMILY=${PIPELINE_FAMILY:-"general"} DOCKER_IMAGE="${DOCKER_IMAGE:-pipeline-family-${PIPELINE_FAMILY}-dev:latest}" SKIP_INFERENCE_TESTS="${SKIP_INFERENCE_TESTS:-false}" +DOCKER_PLATFORM="${DOCKER_PLATFORM:-"linux/arm64"}" start_container() { @@ -30,6 +31,7 @@ start_container() { echo Starting container "$name" docker run -p "$port":"$port" \ + --platform "${DOCKER_PLATFORM}" \ --entrypoint uvicorn \ -d \ --rm \