ops: move production service to port 18080
Verify and deploy production / verify-and-deploy (push) Successful in 2m29s
Verify and deploy production / verify-and-deploy (push) Successful in 2m29s
This commit is contained in:
@@ -39,7 +39,6 @@ jobs:
|
|||||||
- name: Deploy persistent production service
|
- name: Deploy persistent production service
|
||||||
if: gitea.event_name == 'workflow_dispatch' || (gitea.event_name == 'push' && gitea.ref == 'refs/heads/main')
|
if: gitea.event_name == 'workflow_dispatch' || (gitea.event_name == 'push' && gitea.ref == 'refs/heads/main')
|
||||||
env:
|
env:
|
||||||
DEPLOY_PORT: ${{ vars.DEPLOY_PORT }}
|
|
||||||
RELEASE_SHA: ${{ gitea.sha }}
|
RELEASE_SHA: ${{ gitea.sha }}
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
@@ -52,7 +51,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PORT="${DEPLOY_PORT:-3000}"
|
PORT=18080
|
||||||
APP_ROOT=/opt/rednote-tool-studio
|
APP_ROOT=/opt/rednote-tool-studio
|
||||||
RELEASE_DIR="$APP_ROOT/releases/$RELEASE_SHA"
|
RELEASE_DIR="$APP_ROOT/releases/$RELEASE_SHA"
|
||||||
DATA_ROOT=/var/lib/rednote-tool-studio
|
DATA_ROOT=/var/lib/rednote-tool-studio
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ const previous = `${service}-previous`;
|
|||||||
const volume = `${service}-data`;
|
const volume = `${service}-data`;
|
||||||
const sha = (process.env.GITHUB_SHA || process.env.CI_COMMIT_SHA || "dev").slice(0, 12);
|
const sha = (process.env.GITHUB_SHA || process.env.CI_COMMIT_SHA || "dev").slice(0, 12);
|
||||||
const image = `${service}:${sha}`;
|
const image = `${service}:${sha}`;
|
||||||
const port = process.env.DEPLOY_PORT || "3000";
|
const port = process.env.DEPLOY_PORT || "18080";
|
||||||
const dockerfile = process.env.DEPLOY_DOCKERFILE || "Dockerfile";
|
const dockerfile = process.env.DEPLOY_DOCKERFILE || "Dockerfile";
|
||||||
const usePrebuiltOutput = dockerfile === "Dockerfile.deploy";
|
const usePrebuiltOutput = dockerfile === "Dockerfile.deploy";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user