diff --git a/.github/workflows/django-deploy.yml b/.github/workflows/django-deploy.yml index c426397..fa39df8 100644 --- a/.github/workflows/django-deploy.yml +++ b/.github/workflows/django-deploy.yml @@ -113,3 +113,13 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | docker exec linenow-was python manage.py collectstatic --noinput + + - name: Cleanup Docker resources on server # Docker 자원 정리 작업 추가 + uses: appleboy/ssh-action@v1.0.0 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + password: ${{ secrets.SSH_PASSWORD }} + port: ${{ secrets.SSH_PORT }} + script: | + docker system prune -f