From 952a36c8198e219f09519c26ee811c723409c73d Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Wed, 1 May 2024 12:56:23 -0700 Subject: [PATCH] speed up debugging --- .github/actions/docker/action.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/actions/docker/action.yml b/.github/actions/docker/action.yml index 8cc74c71..d3ebe0e5 100644 --- a/.github/actions/docker/action.yml +++ b/.github/actions/docker/action.yml @@ -144,15 +144,16 @@ runs: shell: bash run: | docker images - echo "${{ steps.meta.outputs.tags }}" + echo "Starting container for image: ${{ steps.meta.outputs.tags }}" docker run -d --rm --name test ${{ fromJSON(steps.meta.outputs.json).tags[0] }} ${{ inputs.CONTAINER_TEST_COMMAND }} sleep 20 - docker logs test > logs.txt - EXECUTIONLOG=$(cat logs.txt) - EXECUTIONLOG="${EXECUTIONLOG//'%'/'%25'}" - EXECUTIONLOG="${EXECUTIONLOG//$'\n'/'%0A'}" - EXECUTIONLOG="${EXECUTIONLOG//$'\r'/'%0D'}" - echo "name=container-logs::$EXECUTIONLOG" >> $GITHUB_OUTPUT + docker logs + # test > logs.txt + # EXECUTIONLOG=$(cat logs.txt) + # EXECUTIONLOG="${EXECUTIONLOG//'%'/'%25'}" + # EXECUTIONLOG="${EXECUTIONLOG//$'\n'/'%0A'}" + # EXECUTIONLOG="${EXECUTIONLOG//$'\r'/'%0D'}" + # echo "name=container-logs::$EXECUTIONLOG" >> $GITHUB_OUTPUT - name: Build and push if: inputs.PUSH == 'true' # && inputs.TAG_ONY == 'false'