From b4c6c1f867e0dbeddec9f42d6cb0e0cfe2ff00f9 Mon Sep 17 00:00:00 2001 From: Mincong Huang Date: Fri, 31 Jan 2025 14:29:11 +0100 Subject: [PATCH 1/3] Fix vertesia installation --- .github/workflows/test.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 80087e1..96d7452 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -68,16 +68,15 @@ jobs: echo "::add-mask::${VT_API_KEY}" echo "VT_API_KEY=${VT_API_KEY}" >> $GITHUB_ENV - - name: Create Vertesia profile + - name: Set up Vertesia CLI run: | + npm install -g @vertesia/cli vertesia profiles create "${VT_PROFILE}" \ --target "${VT_ENV}" \ --account "${VT_ACCOUNT}" \ --project ${VT_PROJECT} \ --apikey "${VT_API_KEY}" - - - name: Connect to Vertesia - run: | + vertesia profiles vertesia connect --profile "${VT_PROFILE}" --non-interactive # - name: Set up Docker Buildx From 61fd77d7aace82bc2eb8f7468d7799c488efa20c Mon Sep 17 00:00:00 2001 From: Mincong Huang Date: Fri, 31 Jan 2025 14:41:31 +0100 Subject: [PATCH 2/3] Use GitHub secret --- .github/workflows/test.yaml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 96d7452..ad37487 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,7 +8,6 @@ permissions: env: VT_ENV: staging - VT_SITE: staging.cloud.vertesia.io VT_ACCOUNT: 652d77895674c387e105948c # Dengen Labs VT_PROJECT: 654df9de09676ad3b8631dc3 # Experiments VT_PROFILE: staging-experiments # note: this should match the field ".vertesia.profile" in the agent's "package.json" file. @@ -51,23 +50,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Authenticate with Google Cloud - uses: google-github-actions/auth@v2 - id: gauth - with: - token_format: access_token - project_id: dengenlabs - service_account: gar-pusher@dengenlabs.iam.gserviceaccount.com - workload_identity_provider: projects/265888598630/locations/global/workloadIdentityPools/composable-cloud/providers/github - access_token_lifetime: 300s - create_credentials_file: true - - - name: Get Vertesia API key - run: | - export VT_API_KEY="$(gcloud secrets versions access latest --secret=release-notes-api-key)" - echo "::add-mask::${VT_API_KEY}" - echo "VT_API_KEY=${VT_API_KEY}" >> $GITHUB_ENV - - name: Set up Vertesia CLI run: | npm install -g @vertesia/cli @@ -75,7 +57,7 @@ jobs: --target "${VT_ENV}" \ --account "${VT_ACCOUNT}" \ --project ${VT_PROJECT} \ - --apikey "${VT_API_KEY}" + --apikey "${{ secrets.VT_API_KEY }}" vertesia profiles vertesia connect --profile "${VT_PROFILE}" --non-interactive From 3e99b67036158dae5a8583eb498c7d5657398c10 Mon Sep 17 00:00:00 2001 From: Mincong Huang Date: Fri, 31 Jan 2025 14:44:38 +0100 Subject: [PATCH 3/3] fix command --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ad37487..73db724 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -59,7 +59,7 @@ jobs: --project ${VT_PROJECT} \ --apikey "${{ secrets.VT_API_KEY }}" vertesia profiles - vertesia connect --profile "${VT_PROFILE}" --non-interactive + vertesia agent connect --profile "${VT_PROFILE}" --non-interactive # - name: Set up Docker Buildx # uses: docker/setup-buildx-action@v3