mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-18 07:27:42 +02:00
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.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user