Skip to content

Commit

Permalink
ci: add db envs (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashchoudhary07 authored Aug 24, 2024
1 parent a64a77e commit 6b3d67c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-to-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- develop
- feat/aws-deploy # Remove before merting this PR to dev

jobs:
build-and-push:
Expand Down Expand Up @@ -53,5 +52,10 @@ jobs:
--name ${{ github.event.repository.name }}-${{ vars.ENV }} \
--network=${{ vars.DOCKER_NETWORK }} \
-e RDS_PUBLIC_KEY="${{ secrets.RDS_PUBLIC_KEY }}" \
-e MYSQL_HOST="${{ secrets.MYSQL_HOST }}" \
-e MYSQL_PORT="${{ secrets.MYSQL_PORT }}" \
-e DB_NAME="${{ vars.DB_NAME }}" \
-e MYSQL_DB_USERNAME="${{ secrets.MYSQL_DB_USERNAME }}" \
-e MYSQL_DB_PASSWORD="${{ secrets.MYSQL_DB_PASSWORD }}" \
-e API_V1_PREFIX=/api/v1 \
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}

0 comments on commit 6b3d67c

Please sign in to comment.