Skip to content

Commit b07ec30

Browse files
committed
Create step to retrieve jwt secret
1 parent efbb1f9 commit b07ec30

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ DB_NAME=seeddb
44
DB_URL=jdbc:postgresql://localhost:5432/seeddb
55
DB_USERNAME=postgres
66
DB_PASSWORD=postgres
7-
JWT_SECTRET=jwtsecret
7+
JWT_SECRET=jwtsecret

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,18 @@ jobs:
5454
RDS_ENDPOINT=$(aws ssm get-parameter --name /seed/rds_endpoint --with-decryption --query Parameter.Value --output text)
5555
DEPLOYMENT_BUCKET=$(aws ssm get-parameter --name /seed/deployment_bucket --with-decryption --query Parameter.Value --output text)
5656
DB_PASSWORD=$(aws ssm get-parameter --name /seed/db_password --with-decryption --query Parameter.Value --output text)
57+
JWT_SECRET=$(aws ssm get-parameter --name /seed/jwt_secret --with-decryption --query Parameter.Value --output text)
5758
5859
echo "::add-mask::$DB_PASSWORD"
5960
echo "::add-mask::$DEPLOYMENT_BUCKET"
6061
echo "::add-mask::$RDS_ENDPOINT"
62+
echo "::add-mask::$JWT_SECRET"
6163
6264
echo "EC2_INSTANCE_ID=$EC2_INSTANCE_ID" >> $GITHUB_ENV
6365
echo "RDS_ENDPOINT=$RDS_ENDPOINT" >> $GITHUB_ENV
6466
echo "DEPLOYMENT_BUCKET=$DEPLOYMENT_BUCKET" >> $GITHUB_ENV
6567
echo "DB_PASSWORD=$DB_PASSWORD" >> $GITHUB_ENV
68+
echo "JWT_SECRET=$JWT_SECRET" >> $GITHUB_ENV
6669
6770
- name: Get JAR filename
6871
run: |

0 commit comments

Comments
 (0)