From 28d1e9506e47e532cdcdf651d3ee9b83fdfc43ab Mon Sep 17 00:00:00 2001 From: JD <156010594+5u6r054@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:51:27 -0700 Subject: [PATCH] update workflow to deploy to test env. in GCP --- .github/workflows/deploy_gcp_bootnodes.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy_gcp_bootnodes.yaml b/.github/workflows/deploy_gcp_bootnodes.yaml index a94eb7ec..e43838c5 100644 --- a/.github/workflows/deploy_gcp_bootnodes.yaml +++ b/.github/workflows/deploy_gcp_bootnodes.yaml @@ -46,24 +46,21 @@ jobs: gsutil cp ./bin/masa-node gs://${{ vars.GCP_BUCKET_NAME }}/masa-node gsutil cp ./contracts/* gs://${{ vars.GCP_BUCKET_NAME }}/$BINARY_NAME/ gsutil cp ./contracts/* gs://${{ vars.GCP_BUCKET_NAME }}/ - - name: Set environment output - id: set-env - run: echo "environment=test" >> $GITHUB_OUTPUT deploy: needs: build-and-release runs-on: ubuntu-latest environment: - name: ${{ needs.build-and-release.outputs.environment }} + name: test steps: - id: auth uses: google-github-actions/auth@v2 with: workload_identity_provider: projects/784882329213/locations/global/workloadIdentityPools/github-oidc-pool/providers/github-oidc-provider - service_account: gh-masa-oracle-${{ github.ref_name }}@masa-chain.iam.gserviceaccount.com + service_account: gh-masa-oracle-test@masa-chain.iam.gserviceaccount.com - name: Update Instance Metadata run: | - ENVIRONMENT="production" + ENVIRONMENT="test" echo "Looking for instances with env metadata: $ENVIRONMENT" INSTANCES=$(gcloud compute instances list --filter="metadata.items.ENV=$ENVIRONMENT" --format="get(name)") echo "Found instances: $INSTANCES"