Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
Last active September 16, 2020 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlessanagustin/3b3cc3d94b1471267f3137cc2dc42f03 to your computer and use it in GitHub Desktop.
Save carlessanagustin/3b3cc3d94b1471267f3137cc2dc42f03 to your computer and use it in GitHub Desktop.
Azure Pipeline basic infrastructure check
trigger: none
pr: none
#pool:
stages:
- stage: infrastructure
displayName: infrastructure stage
#variables:
#condition:
jobs:
- job: infrastructure
displayName: infrastructure job
#variables:
#condition:
#pool:
workspace:
clean: all
steps:
- bash: |
echo "hostname: $(hostname)"
echo "public ip: $(curl --silent ifconfig.co)"
echo "private ip: $(ip -h -4 addr show eth0 | awk '/inet/ {print $2}' | cut -d/ -f1)"
displayName: "Agent host info?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment