From 535511f90d8fb4b26ffb1f2961af9221c4e27745 Mon Sep 17 00:00:00 2001 From: pump9918 Date: Sat, 25 May 2024 23:47:42 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Hotfix=20:=20=EA=B5=AC?= =?UTF-8?q?=EB=AC=B8=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/django_cicd.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/django_cicd.yml b/.github/workflows/django_cicd.yml index 36e359d..2625766 100644 --- a/.github/workflows/django_cicd.yml +++ b/.github/workflows/django_cicd.yml @@ -88,4 +88,13 @@ jobs: docker rm mua-dongguk-server docker image rm ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }} docker run -d -v /home/django/media:/app/media -v /home/django/static:/app/static -e TZ=Asia/Seoul -p 8000:8000 --name mua-dongguk-server ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }} - docker exec -it mua-dongguk-server /bin/bash python manage.py collectstatic --noinput \ No newline at end of file + + - name: Collect static files + 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 exec mua-dongguk-server python manage.py collectstatic --noinput \ No newline at end of file