Skip to content

Commit

Permalink
debugging metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistecolle committed Dec 2, 2024
1 parent 2822ad9 commit 510dd8d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/debug-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,7 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y dnsutils iputils-ping curl
- name: Configure DNS resolution
run: |
# Backup the current resolv.conf
sudo cp /etc/resolv.conf /etc/resolv.conf.backup
# Instead of removing symlink, write directly to the file
sudo bash -c 'cat > /etc/resolv.conf << EOF
nameserver 169.254.169.254
nameserver 8.8.8.8
nameserver 8.8.4.4
search google.internal
options timeout:1
EOF'

- name: Debug metadata
run: |
Expand All @@ -51,4 +39,4 @@ jobs:
echo "curl -s http://metadata.google.internal/computeMetadata/v1/instance/image -H Metadata-Flavor: Google"
# Try to access the metadata server
curl "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google"
curl "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google"

0 comments on commit 510dd8d

Please sign in to comment.