fix: point staging and smoke test exclusively to localhost:3000, revert distinct VPS pipeline
This commit is contained in:
@@ -23,4 +23,4 @@ jobs:
|
||||
cd ~/the-nexus
|
||||
git fetch origin main
|
||||
git reset --hard origin/main
|
||||
./deploy.sh staging
|
||||
./deploy.sh main
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
name: Release and Deploy Production
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
deploy-production:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Deploy to host via SSH
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
script: |
|
||||
cd ~/the-nexus || git clone http://143.198.27.163:3000/Timmy_Foundation/the-nexus.git ~/the-nexus
|
||||
cd ~/the-nexus
|
||||
git fetch origin main
|
||||
git reset --hard origin/main
|
||||
./deploy.sh main
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
steps:
|
||||
- name: Check staging environment uptime
|
||||
run: |
|
||||
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://143.198.27.163:4201/)
|
||||
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/)
|
||||
if [ "$HTTP_CODE" -eq 200 ]; then
|
||||
echo "Staging environment is up (HTTP 200)"
|
||||
else
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
## Staging Environment
|
||||
|
||||
# [**🚀 The Nexus Staging Environment**](http://143.198.27.163:4201)
|
||||
# [**🚀 The Nexus Staging Environment**](http://localhost:3000)
|
||||
|
||||
[](http://143.198.27.163:3000/Timmy_Foundation/the-nexus/actions?workflow=smoke-test.yml)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user