-
Notifications
You must be signed in to change notification settings - Fork 102
[APICP] Add extension contact for host binaries #3183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9c22f79
[APICP] Update README file with local dev steps
lasanthaS 0c94eb8
api-control-plane/bff: add extension contract for host binaries
lasanthaS bed4ffc
Add native cloud-extension seam to api-control-plane
lasanthaS 983d11d
Update .gitignore file
lasanthaS 3f39324
Revert "api-control-plane/bff: add extension contract for host binaries"
lasanthaS e691dfc
Fix review suggestions
lasanthaS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| name: API Control Plane Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: 'Version to release (e.g., 0.1.0)' | ||
| required: true | ||
| type: string | ||
| next_dev_version: | ||
| description: 'Next development version (with -SNAPSHOT suffix, e.g. 0.2.0-SNAPSHOT)' | ||
| required: true | ||
| type: string | ||
|
|
||
| env: | ||
| DOCKER_REGISTRY: ghcr.io/wso2/api-platform | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set version | ||
| env: | ||
| VERSION: ${{ inputs.version }} | ||
| run: | | ||
| if [ -z "$(printf '%s' "${VERSION}" | tr -d '[:space:]')" ] || [[ "${VERSION}" == *-SNAPSHOT ]]; then | ||
| echo "Error: version must be a non-snapshot release version" | ||
| exit 1 | ||
| fi | ||
| make -C portals/api-control-plane version-set "VERSION=${VERSION}" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '24' | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: '1.26.5' | ||
| cache: false | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| with: | ||
| driver: docker-container | ||
|
|
||
| - name: Install frontend dependencies | ||
| working-directory: portals/api-control-plane | ||
| run: npm ci | ||
|
|
||
| - name: Run tests | ||
| run: make test-api-control-plane | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.API_PLATFORM_BOT_TOKEN }} | ||
|
|
||
| - name: Build and push multi arch Docker images | ||
| run: make build-and-push-api-control-plane-multiarch | ||
|
|
||
| - name: Create and push tag | ||
| env: | ||
| VERSION: ${{ inputs.version }} | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git commit -am "Release api-control-plane version ${VERSION}" | ||
| git tag -a "apip-api-control-plane/v${VERSION}" -m "API Control Plane ${VERSION}" | ||
| git push origin "apip-api-control-plane/v${VERSION}" | ||
|
|
||
| - name: Set next dev version | ||
| env: | ||
| NEXT_DEV_VERSION: ${{ inputs.next_dev_version }} | ||
| run: | | ||
| if [ -z "${NEXT_DEV_VERSION}" ]; then | ||
| echo "Error: next_dev_version input is required" | ||
| exit 1 | ||
| fi | ||
| if [[ "${NEXT_DEV_VERSION}" != *-SNAPSHOT ]]; then | ||
| echo "Error: next_dev_version must end with -SNAPSHOT (e.g. 0.2.0-SNAPSHOT)" | ||
| exit 1 | ||
| fi | ||
| echo "Setting api-control-plane to next dev version: ${NEXT_DEV_VERSION}" | ||
| make -C portals/api-control-plane version-set "VERSION=${NEXT_DEV_VERSION}" | ||
|
|
||
| - name: Commit version bump | ||
| run: | | ||
| if [ -n "$(git status --porcelain --untracked-files=no)" ]; then | ||
| git commit -am "Bump api-control-plane to next dev version" | ||
| else | ||
| echo "No changes to commit" | ||
| fi | ||
|
|
||
| - name: Create PR for version bump | ||
| id: create-pr | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| commit-message: "Bump api-control-plane to next dev version" | ||
| title: "chore: Bump api-control-plane to next dev version" | ||
| body: | | ||
| Automated version bump after release `apip-api-control-plane/v${{ inputs.version }}` | ||
|
|
||
| This PR bumps the api-control-plane version to the next development version `${{ inputs.next_dev_version }}`. | ||
| branch: api-control-plane-version-bump-${{ github.run_id }} | ||
| base: main | ||
| delete-branch: true | ||
| labels: | | ||
| automated | ||
| version-bump | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| /build/ | ||
| /coverage/ | ||
| /node_modules/ | ||
| /target/ | ||
| .env*.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). | ||
| * | ||
| * WSO2 LLC. licenses this file to you under the Apache License, | ||
| * Version 2.0 (the "License"); you may not use this file except | ||
| * in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| * | ||
| * Injection seam for cloud-only extensions. `main.tsx` imports | ||
| * `cloudExtensions` from here unconditionally, so this file must always | ||
| * exist and export a valid (possibly empty) array — this is what lets a | ||
| * downstream build overlay just this one file/directory with real cloud | ||
| * features, without ever touching App.tsx/main.tsx/extensions.tsx. | ||
| */ | ||
|
|
||
| import type { ApiControlPlaneExtension } from '../extensions'; | ||
|
|
||
| export const cloudExtensions: ApiControlPlaneExtension[] = []; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.