From 5cd315b8bbb774a4166428667bfcffc7eba6f20a Mon Sep 17 00:00:00 2001 From: ximon18 <3304436+ximon18@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:16:21 +0100 Subject: [PATCH] GitHub Actions: debug tweaks Temporarily disable undeploy while investigating failure to connect to remote Docker daemon. Also attempt to print the output docker-compose ps and docker-compose logs if the build fails. --- .github/workflows/main.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54a929af..3fd33e87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,11 +67,20 @@ jobs: TF_VAR_do_token: ${{ secrets.DO_TOKEN }} TF_VAR_run_tests: true - - name: Undeploy - if: always() + - name: Dump logs on failure + if: failure() working-directory: ../rpki-deploy/terraform/krill-e2e-test/run_on_do - run: terraform destroy -auto-approve -var "ssh_key_path=$HOME/secrets/ssh_key" -var "krill_build_path=${GITHUB_WORKSPACE}/../krill" - env: - # Don't embed env var references in env var definitions here, instead - # pass those using -var on the command line. - TF_VAR_do_token: ${{ secrets.DO_TOKEN }} + run: | + eval $(terraform output docker_env_vars) + pushd ../lib/docker + docker-compose ps + docker-compose logs + +# - name: Undeploy +# if: always() +# working-directory: ../rpki-deploy/terraform/krill-e2e-test/run_on_do +# run: terraform destroy -auto-approve -var "ssh_key_path=$HOME/secrets/ssh_key" -var "krill_build_path=${GITHUB_WORKSPACE}/../krill" +# env: +# # Don't embed env var references in env var definitions here, instead +# # pass those using -var on the command line. +# TF_VAR_do_token: ${{ secrets.DO_TOKEN }}