Skip to content

Commit a869365

Browse files
authored
Update deploy-and-update-on-release.yml
- use SSL
1 parent 5305ee0 commit a869365

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy-and-update-on-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ jobs:
117117
--username "$DB_USER")
118118
echo "token=$TOKEN" >> "$GITHUB_OUTPUT"
119119
120+
- name: Download RDS CA bundle
121+
run: curl -sSLo rds-ca.pem https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem
122+
120123
- name: Deploy EF Core Migrations
121124
if: ${{ steps.select_db.outputs.db_host != '' }}
122125
env:
@@ -126,6 +129,8 @@ jobs:
126129
Database=${{ secrets.DB_NAME }};
127130
Username=${{ secrets.DB_USER }};
128131
Password=${{ steps.token_generation.outputs.token }};
132+
SSL Mode=VerifyFull;
133+
Root Certificate=$PWD/rds-ca.pem;
129134
run: |
130135
dotnet ef database update -c DispenserContext -p ./src/DispenserProvider.Migrations/DispenserProvider.Migrations.csproj -s ./src/DispenserProvider.Migrations/DispenserProvider.Migrations.csproj
131136

0 commit comments

Comments
 (0)