From 4c5fac0bb49e9fd7ac2c44e486a8918f88ed1365 Mon Sep 17 00:00:00 2001 From: Alp Tuna Date: Fri, 26 Jan 2024 15:25:30 +0300 Subject: [PATCH] Update ec2-deploy.yml --- .github/workflows/ec2-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ec2-deploy.yml b/.github/workflows/ec2-deploy.yml index 2d7ac81..be5ee8d 100644 --- a/.github/workflows/ec2-deploy.yml +++ b/.github/workflows/ec2-deploy.yml @@ -24,5 +24,6 @@ jobs: EXCLUDE: "prod.env, dev.env" SCRIPT_AFTER: | cd ${{ secrets.TARGET_DIR }} - sudo docker-compose up -d --build app-prod + sudo docker-compose build --no-cache app-prod + sudo docker-compose up -d app-prod sudo docker system prune -af