-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Bash Deployment Scripts for Robust Error Handling (#200)
### Summary & Motivation Address error handling in infrastructure Bash deployment scripts to correct the issue where the output of Bicep commands piped to `tee /dev/tty` fails in non-interactive environments. Modify the piping to `2>&1` to capture both `stdout` and `stderr` reliably across different contexts. Introduce `#!/bin/bash` shebang to all infrastructure scripts to standardize execution behavior and formatting, aligning the local terminal experience with that of GitHub Actions. ### Checklist - [x] I have added a Label to the pull-request - [x] I have added tests, and done manual regression tests - [x] I have updated the documentation, if necessary
- Loading branch information
Showing
9 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
cloud-infrastructure/cluster/config/development-west-europe.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="development" | ||
LOCATION="WestEurope" | ||
LOCATION_PREFIX="west-europe" | ||
|
2 changes: 2 additions & 0 deletions
2
cloud-infrastructure/cluster/config/production-west-europe.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="production" | ||
LOCATION="WestEurope" | ||
LOCATION_PREFIX="west-europe" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="staging" | ||
LOCATION="WestEurope" | ||
LOCATION_PREFIX="west-europe" | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="development" | ||
LOCATION="WestEurope" | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="production" | ||
LOCATION="WestEurope" | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="staging" | ||
LOCATION="WestEurope" | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="development" | ||
LOCATION="WestEurope" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
ENVIRONMENT="production" | ||
LOCATION="WestEurope" | ||
|
||
|