From 96469b68aa8a1a367216ad920fee324982dec1f6 Mon Sep 17 00:00:00 2001 From: torry2 <102455961+torry2@users.noreply.github.com> Date: Sat, 10 Feb 2024 15:44:03 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4f15b78..6a4e064 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,7 @@ jobs: port: ${{ secrets.PORT }} script: | echo "this is terrible" - docker stop pinpoint - docker rm pinpoint - cd /root/beginner-2023summer-g4 - git pull origin main + docker stop pinpoint ; docker rm pinpoint + git -C /root/beginner-2023summer-g4 pull origin main docker build -t perthpinpoint . docker run --mount type=bind,source="$(pwd)/app/core",target=/pinpoint/app/core -dp 0.0.0.0:80:8080 --name "pinpoint" perthpinpoint