From 4578229b20e3f9cff585514b24b3ed6475db77f9 Mon Sep 17 00:00:00 2001 From: Prakash Date: Thu, 23 May 2024 00:01:01 +0530 Subject: [PATCH] chore: add env --- .github/workflows/deploy-to-ec2.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-ec2.yml b/.github/workflows/deploy-to-ec2.yml index 7a31f586..d7e1e746 100644 --- a/.github/workflows/deploy-to-ec2.yml +++ b/.github/workflows/deploy-to-ec2.yml @@ -46,6 +46,7 @@ jobs: host: ${{ secrets.AWS_EC2_HOST }} username: ${{ secrets.AWS_EC2_USERNAME }} key: ${{ secrets.AWS_EC2_SSH_PRIVATE_KEY }} + envs: RDS_PUBLIC_KEY script: | docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest docker stop ${{ github.event.repository.name }}-${{vars.ENV}} || true @@ -53,6 +54,6 @@ jobs: docker run -d -p ${{vars.PORT}}:8080 \ --name ${{ github.event.repository.name }}-${{vars.ENV}} \ --network=${{vars.DOCKER_NETWORK}} \ - -e RDS_PUBLIC_KEY="$RDS_PUBLIC_KEY" \ + -e RDS_PUBLIC_KEY=$RDS_PUBLIC_KEY \ -e API_V1_PREFIX=/api/v1 \ ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}