From 1a4f54ea32bb9150d24fbf2770828b5dd4d0429a Mon Sep 17 00:00:00 2001 From: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> Date: Wed, 11 Dec 2024 08:19:34 -0700 Subject: [PATCH 1/2] ci: DOC-1508 fix GitHub action issue (#4973) * ci: fix GitHub action issue * ci: test * ci: more test * ci: use official GCP actions * ci: ready for review --- .github/workflows/packs-data.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/packs-data.yaml b/.github/workflows/packs-data.yaml index 9ce79f398e..3d356f8ac8 100644 --- a/.github/workflows/packs-data.yaml +++ b/.github/workflows/packs-data.yaml @@ -5,6 +5,7 @@ on: # Runs at 5 minutes past the hour, every 6 hours. - cron: "5 */6 * * *" workflow_dispatch: + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY }} @@ -26,13 +27,20 @@ jobs: secretId: ${{ secrets.VAULT_SECRET_ID }} secrets: /providers/github/organizations/spectrocloud/token?org_name=spectrocloud token | VAULT_GITHUB_TOKEN - - uses: actions-hub/gcloud@master - env: - PROJECT_ID: spectro-common-dev - APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} + - uses: 'google-github-actions/auth@v2' + with: + project_id: spectro-common-dev + credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} + cleanup_credentials: true + + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v2' with: - args: cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json - cli: gsutil + version: '>= 503.0.0' + + - name: 'Get Packs Data' + run: | + gsutil cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json - name: Upload to S3 run: | @@ -49,4 +57,4 @@ jobs: SLACK_USERNAME: "spectromate" SLACK_ICON_EMOJI: ":robot:" SLACK_COLOR: ${{ job.status }} - SLACK_MESSAGE: 'The Docs cron job that generates the `packs.json` file failed. Please check the logs for more details.' \ No newline at end of file + SLACK_MESSAGE: 'The Deprecated Docs cron job that generates the `packs.json` file failed. Please check the logs for more details.' \ No newline at end of file From c80e20623c965b5ef49265d15425e7dcb438a04e Mon Sep 17 00:00:00 2001 From: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:28:52 -0700 Subject: [PATCH 2/2] docs: update CLI flag (#4982) --- .../install-palette/install-on-vmware/airgap-install/install.md | 2 +- .../install-palette/install-on-vmware/install.md | 2 +- .../vertex/install-palette-vertex/install-on-vmware/install.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md index 68625d67b3..53f2933217 100644 --- a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md +++ b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md @@ -280,7 +280,7 @@ Use the following steps to install Palette. attempt. For example: ```bash - palette ec install --config /home/spectro/.palette/ec/ec-20230706150945/ec.yaml + palette ec install --config-file /home/spectro/.palette/ec/ec-20230706150945/ec.yaml ``` ::: diff --git a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md index a449b5830c..418a0fbd32 100644 --- a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md +++ b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md @@ -252,7 +252,7 @@ Use the following steps to install Palette. attempt. For example: ```bash - palette ec install --config /home/spectro/.palette/ec/ec-20230706150945/ec.yaml + palette ec install --config-file /home/spectro/.palette/ec/ec-20230706150945/ec.yaml ``` ::: diff --git a/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md b/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md index cda78a1f0e..3a6307ac58 100644 --- a/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md +++ b/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md @@ -294,7 +294,7 @@ Use the following steps to install Palette VerteX. attempt. For example: ```bash - palette ec install --config /home/spectro/.palette/ec/ec-20230706150945/ec.yaml + palette ec install --config-file /home/spectro/.palette/ec/ec-20230706150945/ec.yaml ``` :::