Skip to content

Commit

Permalink
github: add environment variable .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Jan 24, 2024
1 parent 23c8bbe commit 9e081bf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/environment/README.md
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

```
3 changes: 3 additions & 0 deletions .github/environment/production.env
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
3 changes: 3 additions & 0 deletions .github/environment/staging.env
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

0 comments on commit 9e081bf

Please sign in to comment.