Skip to content

Commit

Permalink
update workflow to deploy to test env. in GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
5u6r054 committed Aug 7, 2024
1 parent 0f7e032 commit 28d1e95
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy_gcp_bootnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 28d1e95

Please sign in to comment.