From 9956d1336ebd48609d13f4467d08f8e4aa142270 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 24 Mar 2026 15:56:42 -0400 Subject: [PATCH 1/2] feat: setup distinct staging and production deployment pipelines --- .gitea/workflows/deploy.yml | 2 +- .gitea/workflows/release.yml | 26 ++++++++++++++++++++++++++ .gitea/workflows/smoke-test.yml | 2 +- README.md | 2 +- 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index babe5c8..21585df 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,4 +23,4 @@ jobs: cd ~/the-nexus git fetch origin main git reset --hard origin/main - ./deploy.sh main + ./deploy.sh staging diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..8d67d9f --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,26 @@ +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 diff --git a/.gitea/workflows/smoke-test.yml b/.gitea/workflows/smoke-test.yml index e978897..277da2f 100644 --- a/.gitea/workflows/smoke-test.yml +++ b/.gitea/workflows/smoke-test.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Check staging environment uptime run: | - HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://staging.the-nexus.com/) + HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://143.198.27.163:4201/) if [ "$HTTP_CODE" -eq 200 ]; then echo "Staging environment is up (HTTP 200)" else diff --git a/README.md b/README.md index e90bccd..2cc49ad 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Staging Environment -# [**🚀 The Nexus Staging Environment**](http://staging.the-nexus.com) +# [**🚀 The Nexus Staging Environment**](http://143.198.27.163:4201) [![Staging Status](http://143.198.27.163:3000/Timmy_Foundation/the-nexus/actions/workflows/smoke-test.yml/badge.svg)](http://143.198.27.163:3000/Timmy_Foundation/the-nexus/actions?workflow=smoke-test.yml) -- 2.43.0 From c5476f217dc4a20bfad67a180594c197237478a9 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 24 Mar 2026 17:10:32 -0400 Subject: [PATCH 2/2] fix: point staging and smoke test exclusively to localhost:3000, revert distinct VPS pipeline --- .gitea/workflows/deploy.yml | 2 +- .gitea/workflows/release.yml | 26 -------------------------- .gitea/workflows/smoke-test.yml | 2 +- README.md | 2 +- 4 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 21585df..babe5c8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,4 +23,4 @@ jobs: cd ~/the-nexus git fetch origin main git reset --hard origin/main - ./deploy.sh staging + ./deploy.sh main diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml deleted file mode 100644 index 8d67d9f..0000000 --- a/.gitea/workflows/release.yml +++ /dev/null @@ -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 diff --git a/.gitea/workflows/smoke-test.yml b/.gitea/workflows/smoke-test.yml index 277da2f..7c33235 100644 --- a/.gitea/workflows/smoke-test.yml +++ b/.gitea/workflows/smoke-test.yml @@ -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 diff --git a/README.md b/README.md index 2cc49ad..0ee945d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Staging Environment -# [**🚀 The Nexus Staging Environment**](http://143.198.27.163:4201) +# [**🚀 The Nexus Staging Environment**](http://localhost:3000) [![Staging Status](http://143.198.27.163:3000/Timmy_Foundation/the-nexus/actions/workflows/smoke-test.yml/badge.svg)](http://143.198.27.163:3000/Timmy_Foundation/the-nexus/actions?workflow=smoke-test.yml) -- 2.43.0