Skip to content

Commit d7a5a10

Browse files
author
Lasim
committed
release satellite
1 parent 015153a commit d7a5a10

File tree

169 files changed

+27310
-9616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+27310
-9616
lines changed

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ When generating commit messages, always follow this format:
1414
### Required Scopes
1515
- `frontend` - For Vue.js frontend application changes
1616
- `backend` - For Fastify backend API changes
17-
- `gateway` - For DeployStack Gateway application changes
17+
- `satellite` - For DeployStack satellite application changes
1818
- `shared` - For shared utilities and common code
1919
- `all` - For changes affecting multiple services or project-wide changes
2020
- `ci` - For CI/CD pipeline and workflow changes
@@ -23,7 +23,7 @@ When generating commit messages, always follow this format:
2323
### Examples of Good Commit Messages
2424
- `feat(frontend): add user authentication flow`
2525
- `fix(backend): resolve database connection pooling issue`
26-
- `feat(gateway): implement MCP server process management`
26+
- `feat(satellite): implement MCP server process management`
2727
- `refactor(shared): extract common validation utilities`
2828
- `docs(all): update installation and setup instructions`
2929
- `chore(deps): update all dependencies to latest versions`
@@ -39,4 +39,4 @@ When generating commit messages, always follow this format:
3939
- Use proper error handling and validation
4040
- Include JSDoc comments for public APIs
4141
- Follow existing code patterns within each service
42-
- Prioritize security, especially for the gateway service
42+
- Prioritize security, especially for the satellite service

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ updates:
3131
commit-message:
3232
prefix: "chore(backend)"
3333
open-pull-requests-limit: 20
34+
35+
- package-ecosystem: "npm"
36+
directories:
37+
- "services/satellite"
38+
schedule:
39+
interval: "weekly"
40+
commit-message:
41+
prefix: "chore(satellite)"
42+
open-pull-requests-limit: 20
3443

3544
- package-ecosystem: 'github-actions'
3645
directory: '/'

.github/workflows/branch-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ permissions:
1414
jobs:
1515
clean-release-branches:
1616
runs-on: ubuntu-latest
17-
# Only run if the PR is from backend-release, frontend-release, or gateway-release branches
18-
if: github.event.pull_request.head.ref == 'backend-release' || github.event.pull_request.head.ref == 'frontend-release' || github.event.pull_request.head.ref == 'gateway-release'
17+
# Only run if the PR is from backend-release, frontend-release, or satellite-release branches
18+
if: github.event.pull_request.head.ref == 'backend-release' || github.event.pull_request.head.ref == 'frontend-release' || github.event.pull_request.head.ref == 'satellite-release'
1919
steps:
2020
- name: Delete release branch
2121
uses: actions/github-script@v7

.github/workflows/gateway-release.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

.github/workflows/gateway-release-pr.yml renamed to .github/workflows/satellite-release-pr.yml

Lines changed: 37 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Gateway Release PR
1+
name: Satellite Release PR
22
on:
33
workflow_dispatch:
44
inputs:
@@ -45,67 +45,61 @@ jobs:
4545
npm install --no-optional
4646
}
4747
48-
- name: Gateway Build Test
49-
working-directory: services/gateway
48+
- name: Satellite Build Test
49+
working-directory: services/satellite
5050
run: npm run build
5151

52-
- name: Gateway Unit Tests
53-
working-directory: services/gateway
54-
run: npm run test:unit || echo "Tests not implemented yet, skipping"
55-
56-
- name: Gateway Lint
57-
working-directory: services/gateway
52+
- name: Satellite Lint
53+
working-directory: services/satellite
5854
run: npm run lint
55+
56+
- name: Check for console.log in satellite
57+
working-directory: services/satellite
58+
run: npm run check:no-console
5959

6060
- name: Prepare release
61-
working-directory: services/gateway
61+
working-directory: services/satellite
6262
env:
6363
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
6464
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
6565
TYPE_ARG: ${{ github.event.inputs.type != 'patch' && format('--increment={0}', github.event.inputs.type) || '' }}
6666
run: |
6767
# Let release-it handle version detection and incrementing properly
68-
npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github --no-git.requireCleanWorkingDir $BETA_ARG
69-
70-
- name: Stage package.json changes
71-
working-directory: services/gateway
72-
run: |
73-
git add package.json CHANGELOG.md
68+
npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
7469
7570
- name: Update version.ts file
76-
working-directory: services/gateway
71+
working-directory: services/satellite
7772
run: |
78-
node scripts/update-version.js || echo "Version update script not found, skipping"
79-
if [ -f src/config/version.ts ]; then
80-
git add src/config/version.ts
81-
fi
73+
node scripts/update-version.js
74+
git add src/config/version.ts
8275
8376
- name: get-npm-version
8477
id: package-version
8578
uses: martinbeentjes/npm-get-version-action@main
8679
with:
87-
path: services/gateway
80+
path: services/satellite
8881

8982
- name: Extract release notes
9083
id: extract-release-notes
84+
working-directory: services/satellite
9185
run: |
9286
VERSION=$(cat package.json | grep '"version"' | cut -d'"' -f4)
9387
echo "Extracting release notes for version $VERSION"
9488
95-
# Find the latest gateway tag
96-
LATEST_TAG=$(git describe --tags --match=gateway-v* --abbrev=0 2>/dev/null || echo "")
89+
# Find the latest satellite tag
90+
LATEST_TAG=$(git describe --tags --match=satellite-v* --abbrev=0 2>/dev/null || echo "")
9791
9892
if [ -z "$LATEST_TAG" ]; then
99-
echo "No previous gateway tag found, using all commits"
100-
GATEWAY_COMMITS=$(git log --oneline --grep="(gateway)" --grep="(all)" --grep-or)
93+
echo "No previous satellite tag found, using all commits"
94+
SATELLITE_COMMITS=$(git log --oneline --grep="(satellite)" --grep="(all)" --grep-or)
10195
else
10296
echo "Using commits since $LATEST_TAG"
103-
# Get gateway and all scoped commits since last release
104-
GATEWAY_COMMITS=$(git log ${LATEST_TAG}..HEAD --oneline --grep="(gateway)")
97+
# Get satellite and all scoped commits since last release
98+
SATELLITE_COMMITS=$(git log ${LATEST_TAG}..HEAD --oneline --grep="(satellite)")
10599
ALL_COMMITS=$(git log ${LATEST_TAG}..HEAD --oneline --grep="(all)")
106100
107101
# Combine and format the commits
108-
COMBINED_COMMITS=$(echo -e "$GATEWAY_COMMITS\n$ALL_COMMITS" | sort -u | grep -v "^$")
102+
COMBINED_COMMITS=$(echo -e "$SATELLITE_COMMITS\n$ALL_COMMITS" | sort -u | grep -v "^$")
109103
fi
110104
111105
# Format commits for release notes
@@ -129,44 +123,42 @@ jobs:
129123
130124
echo "Release notes extracted:"
131125
echo -e "$RELEASE_NOTES"
132-
working-directory: services/gateway
133126
134127
- name: Create pull request
135128
uses: peter-evans/create-pull-request@v7
136129
id: cpr
137130
with:
138131
token: ${{ secrets.APP_INSTALLATION_TOKEN }}
139-
branch: gateway-release
132+
branch: satellite-release
140133
delete-branch: true
141-
commit-message: 'chore(gateway): release v${{ steps.package-version.outputs.current-version}}'
142-
title: '[Gateway Release] v${{ steps.package-version.outputs.current-version}}'
134+
commit-message: 'chore(satellite): release v${{ steps.package-version.outputs.current-version}}'
135+
title: '[Satellite Release] v${{ steps.package-version.outputs.current-version}}'
143136
body: |
144-
## Gateway Release v${{ steps.package-version.outputs.current-version}}
137+
## Satellite Release v${{ steps.package-version.outputs.current-version}}
145138
146-
This PR prepares a new gateway release.
139+
This PR prepares a new satellite release.
147140
148141
When merged, this will:
149142
1. Create a release tag
150-
2. Build and publish the npm package to @deploystack/gateway
143+
2. Build and publish a multi-architecture Docker image to Docker Hub
151144
152-
The npm package will be available at:
153-
- `@deploystack/gateway@latest`
154-
- `@deploystack/gateway@v${{ steps.package-version.outputs.current-version}}`
145+
The Docker image will be available at:
146+
- `deploystack/satellite:latest`
147+
- `deploystack/satellite:v${{ steps.package-version.outputs.current-version}}`
155148
156-
### Installation
157-
```bash
158-
npm install -g @deploystack/gateway@${{ steps.package-version.outputs.current-version}}
159-
```
149+
### Supported Architectures
150+
- `linux/amd64` (Intel/AMD)
151+
- `linux/arm64` (Apple Silicon, AWS Graviton)
160152
161153
## Release notes:
162154
${{ steps.extract-release-notes.outputs.release_notes }}
163155
labels: |
164-
gateway
156+
satellite
165157
release
166158
automated pr
167159
draft: false
168160

169161
- name: Show PR link
170162
if: ${{ steps.cpr.outputs.pull-request-url }}
171163
run: |
172-
echo "Gateway Release v${{ steps.package-version.outputs.current-version}}' pull request - ${{ steps.cpr.outputs.pull-request-url }}"
164+
echo "Satellite Release v${{ steps.package-version.outputs.current-version}}' pull request - ${{ steps.cpr.outputs.pull-request-url }}"

0 commit comments

Comments
 (0)