fix(ci): shell is dash on debian slim (#3261)

This commit is contained in:
Jamil
2024-01-16 11:27:46 -08:00
committed by GitHub
parent 53fb48741c
commit 856f72cd4b

View File

@@ -16,12 +16,12 @@ fi
if [ "${LISTEN_ADDRESS_DISCOVERY_METHOD}" = "gce_metadata" ]; then
echo "Using GCE metadata to discover listen address"
if [ "${PUBLIC_IP4_ADDR:-}" == "" ]; then
if [ "${PUBLIC_IP4_ADDR}" == "" ]; then
export PUBLIC_IP4_ADDR=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" -H "Metadata-Flavor: Google" -s)
echo "Discovered PUBLIC_IP4_ADDR: ${PUBLIC_IP4_ADDR}"
fi
if [ "${PUBLIC_IP6_ADDR:-}" == "" ]; then
if [ "${PUBLIC_IP6_ADDR}" == "" ]; then
export PUBLIC_IP6_ADDR=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ipv6s" -H "Metadata-Flavor: Google" -s)
echo "Discovered PUBLIC_IP6_ADDR: ${PUBLIC_IP6_ADDR}"
fi