Last active
September 16, 2020 10:08
-
-
Save carlessanagustin/3b3cc3d94b1471267f3137cc2dc42f03 to your computer and use it in GitHub Desktop.
Azure Pipeline basic infrastructure check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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