From 6b3d67ca2a7716a067bd0dbda14a666e66c51901 Mon Sep 17 00:00:00 2001 From: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com> Date: Sat, 24 Aug 2024 23:41:14 +0530 Subject: [PATCH] ci: add db envs (#146) --- .github/workflows/deploy-to-ec2.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-ec2.yml b/.github/workflows/deploy-to-ec2.yml index c31820d5..6e6233a8 100644 --- a/.github/workflows/deploy-to-ec2.yml +++ b/.github/workflows/deploy-to-ec2.yml @@ -5,7 +5,6 @@ on: branches: - main - develop - - feat/aws-deploy # Remove before merting this PR to dev jobs: build-and-push: @@ -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 }}