From 89b9c6ea364de1485024e49c51346ae93a45b3b3 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 6 Feb 2026 09:46:15 +0000 Subject: [PATCH] d --- .gitea/workflows/deploy.yaml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 9bb264c..8ac6307 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -12,15 +12,29 @@ jobs: run: | docker build -t my-local-app:latest . - - name: Deploy to CasaOS (Docker) + - name: Remove Old Container run: | - # Stop and remove the old container if it exists + # Use '|| true' to force a success exit code even if the container is missing docker stop my-running-app || true docker rm my-running-app || true - - # Run the new container + + - name: Start New Container + run: | docker run -d \ --name my-running-app \ - -p 9002:5005 \ - --restart always \ - my-local-app:latest \ No newline at end of file + -p 5000:5000 \ + --restart unless-stopped \ + flask-app:latest + + # - name: Deploy to CasaOS (Docker) + # run: | + # # Stop and remove the old container if it exists + # docker stop my-running-app || true + # docker rm my-running-app || true + + # # Run the new container + # docker run -d \ + # --name my-running-app \ + # -p 9002:5005 \ + # --restart always \ + # my-local-app:latest \ No newline at end of file