From b00dbcd130e98a48eca4eff98e6f7f06d84ef2ed Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Mon, 2 Oct 2023 18:04:35 +0900 Subject: [PATCH] :construction_worker: feat: add env.list to CI/CD.yaml (#10) --- .github/workflows/Diareat-CICD.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Diareat-CICD.yml b/.github/workflows/Diareat-CICD.yml index 65910bc..e90c875 100644 --- a/.github/workflows/Diareat-CICD.yml +++ b/.github/workflows/Diareat-CICD.yml @@ -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