Correct documentation since we should restage our application instead of restarting or pushing a manifest. Also include whitespace so it triggers checks

This commit is contained in:
lizpearl 2024-12-06 17:41:55 -06:00
parent 21c41e5f84
commit 7005006b1e
No known key found for this signature in database
GPG key ID: 29F55F4C8D404E14
2 changed files with 6 additions and 7 deletions

View file

@ -62,14 +62,12 @@ jq -n --arg django_key "$django_key" --arg login_key "$login_key" '{"DJANGO_SECR
Copy `REGISTRY_*` credentials from another sandbox into your `credentials-<ENVIRONMENT>.json` file. Also add your `AWS_*` credentials if you have them, otherwise also copy them from another sandbox. You can either use the cloud.gov dashboard or the command `cf env <APP>` to find other credentials.
Go to https://dashboard.fr.cloud.gov/home. Find the `getgov-credentials` service tied to your ENVIRONMENT. Double check it is the right one and delete it. Recreate the service using the updated credentials:
### Update the `getgov-credentials` service tied to your environment.
```sh
cf cups getgov-credentials -p credentials-<ENVIRONMENT>.json
cf uups getgov-credentials -p credentials-<ENVIRONMENT>.json
```
### Restart, restage or push manifest
Pushing the manifest works but a restart or restage might work as well.
### Restage your application
```sh
cf push getgov-<ENVIRONMENT> -f ops/manifests/manifest-<ENVIRONMENT>.yaml
```
cf restage getgov-<ENVIRONMENT> --strategy rolling
```

View file

@ -136,6 +136,7 @@ then
fi
cf service-key github-cd-account github-cd-key | sed 1,2d | jq -r '[.username, .password]|@tsv' |
while read -r username password; do
gh secret --repo cisagov/getgov set CF_${upcase_name}_USERNAME --body $username
gh secret --repo cisagov/getgov set CF_${upcase_name}_PASSWORD --body $password