From b888289b081594ba0dae36980e7d1424a2f849df Mon Sep 17 00:00:00 2001 From: Lee Calcote Date: Sun, 29 Sep 2024 23:14:37 -0500 Subject: [PATCH] Refactor workflow files to remove unused e2e test job and update repository name Signed-off-by: Lee Calcote --- .github/workflows/build-release.yml | 18 --- .github/workflows/integrations-updater.yml | 145 --------------------- 2 files changed, 163 deletions(-) delete mode 100644 .github/workflows/build-release.yml delete mode 100644 .github/workflows/integrations-updater.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml deleted file mode 100644 index b65e08b37a..0000000000 --- a/.github/workflows/build-release.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Notify Meshery Extensions channel build -on: - workflow_dispatch: - push: - tags: - - 'v*' -jobs: - notfiy-build: - name: Notify providers for Meshery Extensions channel build - if: github.repository == 'meshery/helm-kanvas-snapshot' - runs-on: ubuntu-22.04 - steps: - - name: trigger plugins for edge - uses: layer5io/trigger-remote-provider-action@master - with: - name: "Build and Rollout Kanvas" - repo: layer5labs/meshery-extensions-packages - token: ${{ secrets.GH_ACCESS_TOKEN }} diff --git a/.github/workflows/integrations-updater.yml b/.github/workflows/integrations-updater.yml deleted file mode 100644 index 63b4087914..0000000000 --- a/.github/workflows/integrations-updater.yml +++ /dev/null @@ -1,145 +0,0 @@ -name: Meshery Integrations Updater - -on: - push: - branches: - - "master" - paths: - - ".github/workflows/integrations-updater.yml" - schedule: - - cron: "0 0 * * *" # Run the job every day at midnight - workflow_dispatch: - -# This workflow uses the service account: meshery-integrations-sheet@meshery-237716.iam.gserviceaccount.com -# See these instructions for setup - https://theoephraim.github.io/node-google-spreadsheet/#/getting-started/authentication - -jobs: - integrations: - if: github.repository == 'meshery/helm-kanvas-snapshot' - runs-on: ubuntu-22.04 - # outputs: - # output1: ${{ steps.step1.outputs.test }} - # output2: ${{ steps.step2.outputs.test }} - steps: - - name: Checkout Meshery repo - uses: actions/checkout@master - with: - path: meshery - token: ${{ secrets.GH_ACCESS_TOKEN }} - - - name: Checkout Layer5.io repo - uses: actions/checkout@master - with: - repository: layer5io/layer5 - token: ${{ secrets.GH_ACCESS_TOKEN }} - path: layer5 - - - name: Checkout Meshery.io repo - uses: actions/checkout@master - with: - repository: meshery/meshery.io - token: ${{ secrets.GH_ACCESS_TOKEN }} - path: meshery.io - - - name: Checkout cloud repo - uses: actions/checkout@master - with: - repository: layer5io/meshery-cloud - token: ${{ secrets.GH_ACCESS_TOKEN }} - path: meshery-cloud - - - name: Build mesheryctl - working-directory: ./meshery/mesheryctl - run: make; - - - name: Publish to meshery.io site - working-directory: ./meshery/mesheryctl - run: ./mesheryctl registry publish website ${{ secrets.INTEGRATION_SPREADSHEET_CRED }} 1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwizOJmeMw ../../meshery.io/integrations ../meshery.io/assets/images/integration -o js - - - name: Pull latest changes from Meshery.io repo - working-directory: ./meshery.io - run: git pull origin master - - - name: Commit changes to Meshery.io repo - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_user_name: l5io - repository: ./meshery.io - commit_user_email: ci@layer5.io - commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - commit_options: "--signoff" - commit_message: "[Docs] Generated documentation for Integration" - branch: master - - - name: Publish to Layer5.io site - working-directory: ./meshery/mesheryctl - run: ./mesheryctl registry publish website ${{ secrets.INTEGRATION_SPREADSHEET_CRED }} 1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwizOJmeMw ../layer5/src/collections/integrations ../layer5/src/collections/integrations -o mdx - - - name: Pull latest changes from Layer5.io repo - working-directory: ./layer5 - run: git pull origin master - - - name: Commit changes to Layer5.io repo - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_user_name: l5io - repository: ./layer5 - commit_user_email: ci@layer5.io - commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - commit_options: "--signoff" - commit_message: "[Docs] Generated documentation for Integration" - branch: master - - - name: Publish to Meshery docs - working-directory: ./meshery/mesheryctl - run: ./mesheryctl registry publish website ${{ secrets.INTEGRATION_SPREADSHEET_CRED }} 1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwizOJmeMw docs/_models docs/assets/img/integrations -o md - - - name: Pull latest changes from Meshery repo - working-directory: ./meshery - run: git pull origin master - - - name: Commit changes to Meshery repo - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_user_name: l5io - repository: ./meshery - commit_user_email: ci@layer5.io - commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - commit_options: "--signoff" - commit_message: "[Docs] Generated documentation for Integration" - branch: master - - - name: Publish to Meshery Cloud - working-directory: ./meshery/mesheryctl - run: ./mesheryctl registry publish remote-provider ${{ secrets.INTEGRATION_SPREADSHEET_CRED }} 1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwizOJmeMw ../meshery-cloud/meshmodels/models ../meshery-cloud/ui/public/img/meshmodels - - - name: Pull latest changes from Meshery Cloud repo - working-directory: ./meshery-cloud - run: git pull origin master - - - name: Commit changes to Cloud repo - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_user_name: l5io - repository: ./meshery-cloud - commit_user_email: ci@layer5.io - commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - commit_options: "--signoff" - commit_message: "Models Updated" - branch: master - - - name: Send Email on Model Publish Failure - if: failure() - uses: dawidd6/action-send-mail@v3.7.1 - with: - server_address: smtp.gmail.com - server_port: 465 - username: ${{ secrets.MAIL_USERNAME }} - password: ${{ secrets.MAIL_PASSWORD }} - subject: GitHub Actions - Workflow Failure - from: | - "Model Updater" - to: developers@meshery.io - body: | - The GitHub Actions workflow in ${{ github.repository }} has failed. - You can find more details in the GitHub Actions log ${{ github.workflow }}. \ No newline at end of file