diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7069155..e6caf68 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -61,7 +61,7 @@ jobs: # 3. 최신 이미지를 컨테이너화하여 실행시킵니다 - name: docker run new container - run: sudo docker run --name hexagonal-prod --rm -d -p 8080:8080 -e TZ=Asia/Seoul ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }} + run: sudo docker run --name hexagonal-prod --rm -d -p 8080:8080 -e --env-file /home/azureuser/.env TZ=Asia/Seoul ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }} # 4. 미사용 이미지를 정리합니다 - name: delete old docker image