diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eb909c9c..969c699f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -152,7 +152,7 @@ Please follow these steps to create a new release: The bump script will help automate some of the steps below: - Suggest a version number based on [semantic versioning](https://semver.org/) - Create a release branch from `main` - - Update the version in `package.json` , `package-lock.json`, `CHANGELOG.md` and `deploy/deployment.yaml` files + - Update the version in `package.json` , `package-lock.json` and `CHANGELOG.md` files - Commit the changes - Push the release branch to GitHub @@ -162,11 +162,11 @@ Please follow these steps to create a new release: 1. **Create PR to main** - Push the changes to GitHub and create a Pull Request from your release branch into `main` -1. **Release** +2. **Release** - Create a new Github release with the version you decided on earlier - Changes will be automatically deployed once the Github release is created -1. **Post-Release** +3. **Post-Release** - Check the publish action to make sure all deployments succeeded - Check https://developer.smartbear.com/smartbear-mcp/ to ensure the docs have been updated correctly diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml deleted file mode 100644 index c5eda73a..00000000 --- a/deploy/deployment.yaml +++ /dev/null @@ -1,58 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: mcp-production - namespace: mcp-server -spec: - replicas: 1 - revisionHistoryLimit: 3 - selector: - matchLabels: - app: mcp-production - template: - metadata: - labels: - app: mcp-production - spec: - containers: - - name: mcp - image: ghcr.io/smartbear/smartbear-mcp:v0.18.2 - env: - - name: MCP_TRANSPORT - value: "http" - - name: MCP_CLIENTS - value: "bugsnag" - - name: MCP_ALLOWED_ENDPOINTS - valueFrom: - configMapKeyRef: - name: mcp-production - key: allowed-endpoints - - name: MCP_SERVER_BUGSNAG_API_KEY - valueFrom: - configMapKeyRef: - name: mcp-production - key: bugsnag-api-key - - name: ALLOWED_ORIGINS - valueFrom: - configMapKeyRef: - name: mcp-production - key: allowed-origins - ports: - - containerPort: 3000 - name: http - readinessProbe: - httpGet: - path: /health - port: http - livenessProbe: - exec: - command: - - /bin/sh - - -c - - "test $(($(date +%s) - $(stat -c %Y /proc/1))) -lt 86400" - initialDelaySeconds: 60 - periodSeconds: 60 - resources: - requests: - memory: "64Mi" - cpu: "50m" diff --git a/deploy/service.yaml b/deploy/service.yaml deleted file mode 100644 index 284fbbf8..00000000 --- a/deploy/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: mcp-production - namespace: mcp-server -spec: - selector: - app: mcp-production - ports: - - protocol: TCP - nodePort: 30000 - targetPort: 3000 - port: 30000 - type: NodePort diff --git a/scripts/bump.js b/scripts/bump.js index d7909925..6024bb17 100755 --- a/scripts/bump.js +++ b/scripts/bump.js @@ -12,7 +12,6 @@ const __dirname = path.dirname(__filename); const ROOT_DIR = path.resolve(__dirname, ".."); const PACKAGE_JSON_PATH = path.join(ROOT_DIR, "package.json"); const CHANGELOG_PATH = path.join(ROOT_DIR, "CHANGELOG.md"); -const DEPLOYMENT_PATH = path.join(ROOT_DIR, "deploy", "deployment.yaml"); const rl = readline.createInterface({ input: process.stdin, @@ -74,22 +73,6 @@ const updateChangelog = (newVersion) => { console.log(`Updated CHANGELOG.md`); }; -const updateDeployment = (newVersion) => { - let content = fs.readFileSync(DEPLOYMENT_PATH, "utf-8"); - // Regex to match image: ghcr.io/smartbear/smartbear-mcp:vX.Y.Z - const regex = /(image: ghcr\.io\/smartbear\/smartbear-mcp:v)(\d+\.\d+\.\d+)/; - - if (regex.test(content)) { - content = content.replace(regex, `$1${newVersion}`); - fs.writeFileSync(DEPLOYMENT_PATH, content); - console.log(`Updated deploy/deployment.yaml`); - } else { - console.warn( - "Warning: Could not find image tag in deployment.yaml to update.", - ); - } -}; - const main = async () => { console.log("🚀 Starting Release Process..."); @@ -145,17 +128,12 @@ const main = async () => { // 4. Update Changelog updateChangelog(newVersion); - // 5. Update Deployment Manifest - updateDeployment(newVersion); - - // 6. Commit Changes + // 5. Commit Changes console.log("Committing changes..."); - runCommand( - "git add package.json package-lock.json CHANGELOG.md deploy/deployment.yaml", - ); + runCommand("git add package.json package-lock.json CHANGELOG.md"); runCommand(`git commit -m "release: v${newVersion}"`); - // 7. Push branch + // 6. Push branch console.log(`Pushing branch ${branchName} to origin...`); runCommand(`git push -u origin ${branchName}`);