-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from IATI/develop
feat: move all served files to $web; add CDN, custom domain
- Loading branch information
Showing
23 changed files
with
448 additions
and
173 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/bash | ||
|
||
set -o errexit # abort on nonzero exitstatus | ||
set -o nounset # abort on unbound variable | ||
set -o pipefail # don't hide errors within pipes | ||
|
||
if [[ ! -v "1" ]]; then | ||
echo "usage: $0 TARGET_ENVIRONMENT" | ||
echo " TARGET_ENVIRONMENT should likely be 'test', 'dev', or 'prod'" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -d ".git" ]]; then | ||
echo "$0: script must be run from the root of the bulk-data-service repository" | ||
exit 1 | ||
fi | ||
|
||
(git remote -v 2> /dev/null | grep "IATI/bulk-data-service.git" > /dev/null) || (echo "$0: script must be run from the root of the bulk-data-service repository"; exit 1) | ||
|
||
if [[ "$1" == "" ]]; then | ||
echo "TARGET_ENVIRONMENT cannot be empty" | ||
exit 2 | ||
fi | ||
|
||
if [[ $(which gh > /dev/null) ]]; then | ||
echo "This script requires the Github command line client to be installed" | ||
exit 3 | ||
fi | ||
|
||
TARGET_ENVIRONMENT="$1" | ||
|
||
cp -f azure-provision/default-github-config-template.env azure-provision/default-github-config.env | ||
|
||
sed -i "s/^/${TARGET_ENVIRONMENT^^}/g" azure-provision/default-github-config.env | ||
|
||
gh variable set --env-file ./azure-provision/default-github-config.env |
Oops, something went wrong.