diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index e473594..92f831d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -89,7 +89,15 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} port: 22 # Default SSH port; change if different script: | - cd /path/to/your/repo # Adjust to the repo path on the host (e.g., /home/ryan/Reward) + cd /tmp + # Pull the repository to get the latest docker-compose.dev.yml + if [ -d "chore-app" ]; then + cd chore-app + git pull origin next || true # Pull latest changes; ignore if it fails (e.g., first run) + else + git clone --branch next https://git.ryankegel.com:3000/ryan/chore-app.git + cd chore-app + fi echo "Bringing down previous test environment..." docker-compose -f docker-compose.dev.yml down --volumes --remove-orphans || true echo "Starting new test environment..."