Add public hostname for runner

This commit is contained in:
Mikhail f. Shiryaev 2022-06-27 14:46:28 +02:00
parent f2611c3707
commit 6a67ba91cf
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -38,6 +38,7 @@ cat > /tmp/actions-hooks/pre-run.sh << 'EOF'
#!/bin/bash #!/bin/bash
set -xuo pipefail set -xuo pipefail
echo "Runner's public DNS: $(ec2metadata --public-hostname)"
EOF EOF
cat > /tmp/actions-hooks/post-run.sh << 'EOF' cat > /tmp/actions-hooks/post-run.sh << 'EOF'