forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ankita Sahu <[email protected]>
- Loading branch information
Showing
1,531 changed files
with
234,914 additions
and
70,690 deletions.
There are no files selected for viewing
This file contains 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 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 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,57 @@ | ||
name: Meshery Build and Releaser (meshery-extensions channel) | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker-build-push: | ||
name: Docker build and push | ||
if: github.repository == 'meshery/meshery' && github.event_name != 'pull_request' && success() | ||
env: | ||
RELEASE_CHANNEL: "kanvas" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Fetch latest tag | ||
run: | | ||
echo "LATEST_TAG=$(curl --silent "https://api.github.com/repos/meshery/meshery/releases" | jq ' .[] | ."tag_name"' | sed -n 1p$'\n' | tr -d '"')" >> $GITHUB_ENV | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
ref: ${{ inputs.branch }} | ||
- name: Docker login | ||
uses: azure/docker-login@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Configure Meshery UI | ||
run: | | ||
cat << EOF > ui/ui.config.js | ||
module.exports = { | ||
components: { | ||
navigator: false, // set false to disable the navigator component ( default: true ) | ||
}, | ||
}; | ||
EOF | ||
- name: Docker build & tag | ||
run: | | ||
DOCKER_BUILDKIT=1 docker build -f install/docker/Dockerfile --no-cache -t ${{ secrets.IMAGE_NAME }}:kanvas-latest --build-arg TOKEN=${{ secrets.GLOBAL_TOKEN }} --build-arg GIT_COMMITSHA=${GITHUB_SHA::8} --build-arg GIT_VERSION=${{ env.LATEST_TAG }} --build-arg RELEASE_CHANNEL=${RELEASE_CHANNEL} . | ||
docker tag ${{ secrets.IMAGE_NAME }}:kanvas-latest ${{ secrets.IMAGE_NAME }}:kanvas-${GITHUB_SHA::8} | ||
docker tag ${{ secrets.IMAGE_NAME }}:kanvas-latest ${{ secrets.IMAGE_NAME }}:kanvas-${{ env.LATEST_TAG }} | ||
- name: Docker push | ||
run: | | ||
docker push ${{ secrets.IMAGE_NAME }}:kanvas-latest | ||
docker push ${{ secrets.IMAGE_NAME }}:kanvas-${GITHUB_SHA::8} | ||
docker push ${{ secrets.IMAGE_NAME }}:kanvas-${{ env.LATEST_TAG }} | ||
call-meshery-extensions-playground-rollout: | ||
needs: | ||
- docker-build-push | ||
name: Deploy CNCF Extensions Playground | ||
uses: layer5labs/meshery-extensions-packages/.github/workflows/deploy-meshery-extensions-playground.yml@master | ||
with: | ||
# should we use SHA? | ||
# As if meshery is not released but we want to deploy changes from the master branch, the release/latest tag will be same and hence the rollout will be skipped. | ||
image: layer5/meshery:kanvas-${ GITHUB_SHA::8 } | ||
secrets: inherit |
This file contains 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 |
---|---|---|
|
@@ -61,7 +61,6 @@ jobs: | |
/home/runner/.cache | ||
!~/cache/exclude | ||
**/node_modules | ||
/home/runner/.cache/Cypress | ||
~/.npm | ||
${{ github.workspace }}/.next/cache | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | ||
|
@@ -118,11 +117,11 @@ jobs: | |
with: | ||
repository: layer5io/meshery-istio | ||
path: ./meshery-istio | ||
- name: Check out meshery-consul code | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: layer5io/meshery-consul | ||
path: ./meshery-consul | ||
# - name: Check out meshery-consul code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: layer5io/meshery-consul | ||
# path: ./meshery-consul | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -137,12 +136,12 @@ jobs: | |
cd ./meshery-istio | ||
go run main.go & | ||
sleep 60 | ||
- name: Run meshery-consul | ||
run: | | ||
mkdir -p /home/runner/.meshery/bin | ||
cd ./meshery-consul | ||
go run main.go & | ||
sleep 60 | ||
# - name: Run meshery-consul | ||
# run: | | ||
# mkdir -p /home/runner/.meshery/bin | ||
# cd ./meshery-consul | ||
# go run main.go & | ||
# sleep 60 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -157,7 +156,6 @@ jobs: | |
/home/runner/.cache | ||
!~/cache/exclude | ||
**/node_modules | ||
/home/runner/.cache/Cypress | ||
~/.npm | ||
${{ github.workspace }}/.next/cache | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | ||
|
@@ -233,11 +231,10 @@ jobs: | |
- name: Docker Hub Description | ||
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success() | ||
uses: peter-evans/dockerhub-description@v4 | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKERHUB_REPOSITORY: ${{ secrets.IMAGE_NAME }} | ||
|
||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
repository: ${{ secrets.IMAGE_NAME }} | ||
# validate the swagger docs | ||
swaggerci: | ||
if: github.repository == 'meshery/meshery' | ||
|
This file contains 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 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 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 |
---|---|---|
|
@@ -6,40 +6,42 @@ on: | |
description: Link of the spreadsheet containing keys. | ||
type: string | ||
default: https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub?gid=64355745&single=true&output=csv | ||
schedule: | ||
- cron: "0 0 * * *" | ||
jobs: | ||
fetch-keys: | ||
name: Fetch Keys | ||
if: github.repository == 'meshery/meshery' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
fetch-depth: 1 | ||
- name: Set spreadsheet_uri as environment variable | ||
run: echo "spreadsheet_uri=${{inputs.spreadsheet_uri}}" >> $GITHUB_ENV | ||
if: inputs.spreadsheet_uri != '' | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
fetch-depth: 1 | ||
- name: Set spreadsheet_uri as environment variable | ||
run: echo "spreadsheet_uri=https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub?gid=64355745&single=true&output=csv" >> $GITHUB_ENV | ||
if: inputs.spreadsheet_uri != '' | ||
echo "spreadsheet_uri=${{ inputs.spreadsheet_uri }}" >> $GITHUB_ENV | ||
|
||
- name: Dump keys from the spreadsheet | ||
run: | | ||
curl -L "${{ env.spreadsheet_uri }}" -o "./keys.csv"; | ||
- name: Create permissions folder | ||
run: | | ||
- name: Dump keys from the spreadsheet | ||
run: | | ||
curl -L "${{ env.spreadsheet_uri }}" -o "./keys.csv"; | ||
- name: Create permissions folder | ||
run: | | ||
[ ! -d "./server/permissions" ] && mkdir -p "./server/permissions"; | ||
mv keys.csv server/permissions/keys.csv; | ||
- name: Save keys.csv to docs/assets/excel | ||
run: cp server/permissions/keys.csv docs/assets/excel/keys.csv | ||
- name: Save keys.csv to docs/assets/excel | ||
run: cp server/permissions/keys.csv docs/assets/excel/keys.csv | ||
|
||
- name: Pull changes from remote | ||
run: git pull origin master | ||
- name: Pull changes from remote | ||
run: git pull origin master | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Added permissions keys. | ||
branch: master | ||
commit_options: '--signoff' | ||
commit_user_name: l5io | ||
commit_user_email: [email protected] | ||
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>author of the commit that triggered the run | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Added permissions keys. | ||
branch: master | ||
commit_options: "--signoff" | ||
commit_user_name: l5io | ||
commit_user_email: [email protected] | ||
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>author of the commit that triggered the run |
This file contains 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,4 @@ | ||
name: MeshMap Screenshot Service | ||
name: Meshery Snapshot Service | ||
on: # rebuild any PRs and main branch changes | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
@@ -37,7 +37,7 @@ jobs: | |
path: action | ||
repository: layer5labs/meshmap-snapshot | ||
- id: test_result | ||
uses: layer5labs/[email protected].8 | ||
uses: layer5labs/[email protected].11 | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} # github's personal access token example: "ghp_...." | ||
mesheryToken: ${{ secrets.MESHERY_TOKEN }} # Meshery Cloud Authentication token, signin to meshery-cloud to get one, example: ey..... | ||
|
This file contains 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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
Oops, something went wrong.