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)