Skip to content

Commit

Permalink
👷 feat: add env.list to CI/CD.yaml (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Oct 2, 2023
1 parent 990a7da commit b00dbcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/Diareat-CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ jobs:
sudo docker rmi ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:latest
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:latest
echo "Some Environment Variable" > env.list
echo "DB_ENDPOINT=${{ secrets.DB_ENDPOINT }}" > env.list
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> env.list
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> env.list
sudo docker run -d --env-file env.list --name Diareat_Backend ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:latest
sleep 10s
Expand Down

0 comments on commit b00dbcd

Please sign in to comment.