Skip to content

Commit

Permalink
ci: add env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashchoudhary07 committed May 22, 2024
1 parent e075b9a commit 0bd943e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-to-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 0bd943e

Please sign in to comment.