-test environment
Some checks failed
Chore App Build and Push Docker Images / build-and-push (push) Failing after 45s
Some checks failed
Chore App Build and Push Docker Images / build-and-push (push) Failing after 45s
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user