diff --git a/.github/workflows/deploy-to-ec2.yml b/.github/workflows/deploy-to-ec2.yml index ea79fe83..a1732b1a 100644 --- a/.github/workflows/deploy-to-ec2.yml +++ b/.github/workflows/deploy-to-ec2.yml @@ -48,9 +48,10 @@ jobs: docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest docker stop ${{ github.event.repository.name }}-${{vars.ENV}} || true docker rm ${{ github.event.repository.name }}-${{vars.ENV}} || true + RDS_PUBLIC_KEY=${{secrets.RDS_PUBLIC_KEY}} docker run -d -p ${{vars.PORT}}:8080 \ --name ${{ github.event.repository.name }}-${{vars.ENV}} \ --network=${{vars.DOCKER_NETWORK}} \ -e API_V1_PREFIX=/api/v1 \ - -e RDS_PUBLIC_KEY=${{secrets.RDS_PUBLIC_KEY}} \ + -e RDS_PUBLIC_KEY=${RDS_PUBLIC_KEY} \ ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} \ No newline at end of file