Specify ngrok config version (#2610)

Also prefix ngrok config temporary filename so that it is easy to
distinguish when listing the tmp directory.
This commit is contained in:
Shouichi Kamiya
2022-10-27 14:27:09 +09:00
committed by GitHub
parent bd637658f6
commit 4bc766d97d

View File

@@ -173,6 +173,7 @@ Follow these instructions to create a token (we don't store any tokens):
// will just choose a random API port and we won't be able to get the right
// url.
ngrokConfig := fmt.Sprintf(`
version: 1
web_addr: %s
tunnels:
atlantis:
@@ -181,7 +182,7 @@ tunnels:
proto: http
`, ngrokAPIURL, atlantisPort)
ngrokConfigFile, err := os.CreateTemp("", "")
ngrokConfigFile, err := os.CreateTemp("", "atlantis-testdrive-ngrok-config")
if err != nil {
return errors.Wrap(err, "creating ngrok config file")
}