diff --git a/.github/workflows/debug-ev.yml b/.github/workflows/debug-ev.yml new file mode 100644 index 0000000000..581dc00925 --- /dev/null +++ b/.github/workflows/debug-ev.yml @@ -0,0 +1,35 @@ +name: debug-ev +on: + push: + branches: [mike/debug-ev] +jobs: + shell: + runs-on: ubuntu-latest + timeout-minutes: 30 + env: + EV_SIGNING_CERT: ${{ secrets.EV_SIGNING_CERT }} + EV_KEYSTORE: ${{ vars.EV_KEYSTORE }} + EV_KEY: ${{ vars.EV_KEY }} + EV_TSA_URL: ${{ vars.EV_TSA_URL }} + steps: + - name: Start tmate locked to ibetitsmike's GitHub SSH keys + run: | + sudo apt-get update -qq + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq tmate + curl -fsSL "https://github.com/ibetitsmike.keys" -o /tmp/authorized_keys + test -s /tmp/authorized_keys + tmate -a /tmp/authorized_keys -S /tmp/tmate.sock new-session -d + tmate -S /tmp/tmate.sock wait tmate-ready + tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' | tee /tmp/tmate-ssh.txt + { echo '```'; cat /tmp/tmate-ssh.txt; echo '```'; } >> "$GITHUB_STEP_SUMMARY" + - name: Publish connection string as artifact + uses: actions/upload-artifact@v4 + with: + name: tmate-ssh + path: /tmp/tmate-ssh.txt + - name: Keep alive until /tmp/done exists (touch it in the session when finished) + run: | + for i in $(seq 1 320); do + [ -f /tmp/done ] && exit 0 + sleep 5 + done