-
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.
github: add environment variable .env files
- Loading branch information
1 parent
23c8bbe
commit 9e081bf
Showing
3 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Github Deployment Environments | ||
Github deployment environments are used to define unique settings for each environment i.e. staging and production | ||
|
||
The build and push workflows need to know which AWS account to push updated docker images to. | ||
|
||
### DotEnv Files | ||
The .env files in this directory are here as a record of the "variables" and their values. | ||
|
||
The variables can be updated from these files using the following command: | ||
```bash | ||
gh variable set -R aodn/<repo name> -e <environment name> -f <environment>.env | ||
|
||
``` |
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,3 @@ | ||
AWS_REGION=ap-southeast-2 | ||
ECR_REGISTRY=450356697252.dkr.ecr.ap-southeast-2.amazonaws.com | ||
ECR_REPOSITORY=api |
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,3 @@ | ||
AWS_REGION=ap-southeast-2 | ||
ECR_REGISTRY=450356697252.dkr.ecr.ap-southeast-2.amazonaws.com | ||
ECR_REPOSITORY=api |