From e2eee3ed96ddbd2c98ff801b8148f020bedf7942 Mon Sep 17 00:00:00 2001 From: xihxxn Date: Wed, 1 Jul 2026 15:29:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EB=B0=B0=ED=8F=AC=20=EC=8B=9C=20?= =?UTF-8?q?=EB=AF=B8=EC=82=AC=EC=9A=A9=20Docker=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=A0=95=EB=A6=AC=20=EB=B0=8F=20=ED=97=AC=EC=8A=A4?= =?UTF-8?q?=EC=B2=B4=ED=81=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 21f1f7b..75e9f92 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,7 @@ jobs: --restart unless-stopped \ -p 8080:8080 \ -v piroin-uploads:/app/uploads \ - --health-cmd="curl -f http://localhost:8080/actuator/health || exit 1" \ + --health-cmd="wget -q -O /dev/null http://localhost:8080/actuator/health || exit 1" \ --health-interval=30s \ --health-timeout=10s \ --health-retries=3 \ @@ -70,3 +70,4 @@ jobs: -e JWT_SECRET="${{ secrets.JWT_SECRET }}" \ -e JWT_EXPIRATION="${{ secrets.JWT_EXPIRATION }}" \ ${{ secrets.DOCKERHUB_USERNAME }}/piroin-backend:latest + docker image prune -a -f From 99ae345024790febfcde01137f587a6422435cfb Mon Sep 17 00:00:00 2001 From: xihxxn Date: Wed, 1 Jul 2026 15:57:29 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EB=B0=B0=ED=8F=AC=20=EC=8B=9C=20Do?= =?UTF-8?q?cker=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20SHA=20=ED=83=9C=EA=B7=B8?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 75e9f92..6c94259 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,8 +41,10 @@ jobs: - name: Build and push Docker image working-directory: backend run: | - docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/piroin-backend:latest . + docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/piroin-backend:latest \ + -t ${{ secrets.DOCKERHUB_USERNAME }}/piroin-backend:${{ github.sha }} . docker push ${{ secrets.DOCKERHUB_USERNAME }}/piroin-backend:latest + docker push ${{ secrets.DOCKERHUB_USERNAME }}/piroin-backend:${{ github.sha }} - name: Deploy to EC2 uses: appleboy/ssh-action@v1.0.0