-test environment
Some checks failed
Chore App Build and Push Docker Images / build-and-push (push) Failing after 29s
Some checks failed
Chore App Build and Push Docker Images / build-and-push (push) Failing after 29s
This commit is contained in:
@@ -82,8 +82,16 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Deploy Test Environment
|
||||
run: |
|
||||
uses: appleboy/ssh-action@v1.0.3 # Or equivalent Gitea action; adjust version if needed
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_TEST_HOST }}
|
||||
username: ${{ secrets.DEPLOY_TEST_USER }}
|
||||
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)
|
||||
echo "Bringing down previous test environment..."
|
||||
docker-compose -f docker-compose.test.yml down --volumes --remove-orphans || true
|
||||
docker-compose -f docker-compose.dev.yml down --volumes --remove-orphans || true
|
||||
echo "Starting new test environment..."
|
||||
docker-compose -f docker-compose.test.yml up -d
|
||||
docker-compose -f docker-compose.dev.yml pull # Ensure latest images are pulled
|
||||
docker-compose -f docker-compose.dev.yml up -d
|
||||
|
||||
Reference in New Issue
Block a user