-
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.
deploy: add README.md with example command for configuring envs
- Loading branch information
1 parent
9f54ab9
commit 8607d9a
Showing
3 changed files
with
38 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,18 @@ | ||
# Github Deployments | ||
Deployment of this application uses [Github Deployment Environments](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment). | ||
|
||
A successful deployment relies on the correct variables being defined in order to deploy to the correct AWS account etc. | ||
|
||
### Managing Environments | ||
You can view the current environment settings by visiting https://github.com/aodn/sample-django-app/settings/environments. | ||
|
||
You can view the currently defined variables there or from the cli using: | ||
```bash | ||
gh variable list -R aodn/sample-django-app -e staging | ||
``` | ||
|
||
#### Updating Variables | ||
Manually updating vars can be tedious and error-prone. Instead, you may define the variables you need as a .env file and push these values: | ||
```bash | ||
gh variable set -R aodn/sample-django-app -e staging -f staging.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,11 @@ | ||
ALB_PARAMETER_NAME=shared-alb-devops-sydney | ||
APP_NAME=sample-django-app | ||
AWS_ACCOUNT_ID=450356697252 | ||
AWS_REGION=ap-southeast-2 | ||
DB_NAME=api_prod | ||
DB_USER=prod | ||
ECR_PARAMETER_NAME=api | ||
ECR_REGISTRY=450356697252.dkr.ecr.ap-southeast-2.amazonaws.com | ||
ECR_REPOSITORY=api | ||
ENVIRONMENT=production | ||
RDS_PARAMETER_NAME=stefan-db/primary/evaluation |
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,9 @@ | ||
ALB_PARAMETER_NAME=shared-alb-devops-sydney | ||
APP_NAME=sample-django-app | ||
AWS_ACCOUNT_ID=450356697252 | ||
AWS_REGION=ap-southeast-2 | ||
ECR_PARAMETER_NAME=api | ||
ECR_REGISTRY=450356697252.dkr.ecr.ap-southeast-2.amazonaws.com | ||
ECR_REPOSITORY=api | ||
ENVIRONMENT=staging | ||
RDS_PARAMETER_NAME=stefan-db/primary/evaluation |