From 6b080b700b2bf5bb430454c47132b83bbc80cf8f Mon Sep 17 00:00:00 2001 From: Din Music Date: Fri, 22 Mar 2024 16:37:10 +0100 Subject: [PATCH] github: Add tmate and additional output for debugging Signed-off-by: Din Music --- .github/actions/image-upload/action.yml | 13 +++++++++++++ .github/workflows/image-alpine.yml | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/.github/actions/image-upload/action.yml b/.github/actions/image-upload/action.yml index e5370d7f2..aea68b25c 100644 --- a/.github/actions/image-upload/action.yml +++ b/.github/actions/image-upload/action.yml @@ -33,6 +33,19 @@ runs: # Configure known host. echo "${SSH_HOST} ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOJS6V7WpVdFdAcTSn/98rBRsvJVyTI3O17qMeg0cD5E" >> ~/.ssh/known_hosts + - name: Debug + shell: bash + run: | + echo "==> wget" + wget -qO - https://ip.sdeziel.info + + echo "==> ip a" + ip a + + echo "==> nc" + nc -w 1 -zv images.lxd.canonical.com 922 + + - name: Upload artifacts to the image server shell: bash env: diff --git a/.github/workflows/image-alpine.yml b/.github/workflows/image-alpine.yml index de2103669..2ff7b8176 100644 --- a/.github/workflows/image-alpine.yml +++ b/.github/workflows/image-alpine.yml @@ -98,3 +98,7 @@ jobs: target: ${{ env.target }} image_dir: "${{ env.distro }}/${{ matrix.release }}/${{ matrix.architecture }}/${{ matrix.variant }}" ssh_private_key: "${{ secrets.LXD_INFRA_IMAGES_KEY }}" + + - name: (DEBUG) Tmate + if: failure() + uses: mxschmitt/action-tmate@v3