Skip to content

Commit d398131

Browse files
committed
ready to do a release test
1 parent b20ef1e commit d398131

3 files changed

Lines changed: 38 additions & 37 deletions

File tree

.github/workflows/merge_on_master_tw.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
# consume more minutes. I chose to trigger the workflow run on pull requests only.
1111
push:
1212
branches:
13-
- 'master-tw'
13+
- 'dedicated-bundler-setup_new'
1414

1515
jobs:
1616
js_build_test:
@@ -57,9 +57,9 @@ jobs:
5757
gcp_project_number: '766873424314'
5858
gcp_pool_id: 'pool-id-github-actions'
5959
# gcp_provider_id: 'ga-GITHUB_REPO_NAME'
60-
gcp_provider_id: 'ga-paymaster-service'
60+
gcp_provider_id: 'ga-bundler'
6161
# LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/IMAGE
62-
gcp_registry: 'us-docker.pkg.dev/biconomy-prod/paymaster/tw-01-paymaster'
63-
gcp_service_account: 'sa-paymaster-service@prj-workload-identity-001.iam.gserviceaccount.com'
62+
gcp_registry: 'us-docker.pkg.dev/biconomy-prod/bundler/trustwallet'
63+
gcp_service_account: 'sa-bundler@prj-workload-identity-001.iam.gserviceaccount.com'
6464

6565
# TODO: Add integrations tests here

.github/workflows/release.yaml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -82,41 +82,42 @@ jobs:
8282
gcp_pool_id: 'pool-id-github-actions'
8383
# created by devops/gcp/github-actions/configure_workload_identity_federation_with_github_actions_pipelines.sh
8484
# gcp_provider_id: 'ga-GITHUB_REPO_NAME'
85-
gcp_provider_id: 'ga-paymaster-service'
85+
gcp_provider_id: 'ga-bundler'
8686
# SERVICE_ACCOUNT_EMAIL="${SERVICE_ACCOUNT}@${PROJECT}.iam.gserviceaccount.com"
87-
gcp_service_account: 'sa-paymaster-service@prj-workload-identity-001.iam.gserviceaccount.com'
87+
gcp_service_account: 'sa-bundler@prj-workload-identity-001.iam.gserviceaccount.com'
8888
gcp_cluster_name: 'dedicated-bundler'
8989
gcp_cluster_location: 'us-east1'
9090
use_internal_ip: true
9191
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
92-
deploy_command: './install-paymaster/paymaster-update-setup.sh biconomy-stage-dedicated-bundler.cfg ${GITHUB_REF:10}'
92+
deploy_command: './install-bundler/bundler-update-release.sh bundler-tw-staging.cfg ${GITHUB_REF:10}'
9393
# deploy_command: 'echo IMG_VERSION is ${GITHUB_REF:10}' # for example extracts v0.0.5 from "refs/tags/v0.0.5"
9494

95-
deploy_tw_prod:
96-
needs: [deploy_tw_staging]
97-
# environment: tw-prod
98-
# Allow the job to fetch a GitHub ID token
99-
# runs-on: ubuntu-latest
100-
permissions:
101-
id-token: write
102-
contents: read
103-
uses: bcnmy/devops/.github/workflows/deploy_to_gke.yaml@master
104-
with:
105-
environment: 'tw-prod'
106-
# GCP project where the identity provider is
107-
# gcloud projects describe prj-workload-identity-001
108-
gcp_project_number: '766873424314'
109-
gcp_project_id: 'biconomy-prod'
110-
gcp_bastion: 'bastion02'
111-
gcp_bastion_zone: 'us-east1-b'
112-
gcp_pool_id: 'pool-id-github-actions'
113-
# created by devops/gcp/github-actions/configure_workload_identity_federation_with_github_actions_pipelines.sh
114-
# gcp_provider_id: 'ga-GITHUB_REPO_NAME'
115-
gcp_provider_id: 'ga-paymaster-service'
116-
# SERVICE_ACCOUNT_EMAIL="${SERVICE_ACCOUNT}@${PROJECT}.iam.gserviceaccount.com"
117-
gcp_service_account: 'sa-paymaster-service@prj-workload-identity-001.iam.gserviceaccount.com'
118-
gcp_cluster_name: 'tw-01-paymaster'
119-
gcp_cluster_location: 'us-east1'
120-
use_internal_ip: true
121-
deploy_command: './install-paymaster/paymaster-update-setup.sh biconomy-prod-tw-01-paymaster.cfg ${GITHUB_REF:10}'
122-
# deploy_command: 'helm ls --all-namespaces'
95+
# deploy_tw_prod:
96+
# needs: [deploy_tw_staging]
97+
# # environment: tw-prod
98+
# # Allow the job to fetch a GitHub ID token
99+
# # runs-on: ubuntu-latest
100+
# permissions:
101+
# id-token: write
102+
# contents: read
103+
# uses: bcnmy/devops/.github/workflows/deploy_to_gke.yaml@master
104+
# with:
105+
# environment: 'tw-prod'
106+
# # GCP project where the identity provider is
107+
# # gcloud projects describe prj-workload-identity-001
108+
# gcp_project_number: '766873424314'
109+
# gcp_project_id: 'biconomy-prod'
110+
# gcp_bastion: 'bastion02'
111+
# gcp_bastion_zone: 'us-east1-b'
112+
# gcp_pool_id: 'pool-id-github-actions'
113+
# # created by devops/gcp/github-actions/configure_workload_identity_federation_with_github_actions_pipelines.sh
114+
# # gcp_provider_id: 'ga-GITHUB_REPO_NAME'
115+
# gcp_provider_id: 'ga-bundler'
116+
# # SERVICE_ACCOUNT_EMAIL="${SERVICE_ACCOUNT}@${PROJECT}.iam.gserviceaccount.com"
117+
# gcp_service_account: 'sa-bundler@prj-workload-identity-001.iam.gserviceaccount.com'
118+
# gcp_cluster_name: 'trustwallet'
119+
# gcp_cluster_location: 'us-central1'
120+
# use_internal_ip: true
121+
# deploy_command: './install-paymaster/paymaster-update-setup.sh bundler-tw-production.cfg ${GITHUB_REF:10}'
122+
# # deploy_command: './install-paymaster/paymaster-update-setup.sh $bundler-tw-production.cfg {GITHUB_REF:10}'
123+
# # deploy_command: 'helm ls --all-namespaces'

install-bundler/bundler/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ for array_name in $array_names; do
194194
echo ""
195195
echo "Deploying HELM chart for $NAME $CHAIN_ID"
196196

197-
# helm upgrade --install "${HELM_RELEASE}-${CHAIN_ID}" "$DIR/." \
198-
helm template "${HELM_RELEASE}-${CHAIN_ID}" "$DIR/." \
197+
# helm template "${HELM_RELEASE}-${CHAIN_ID}" "$DIR/." \
198+
helm upgrade --install "${HELM_RELEASE}-${CHAIN_ID}" "$DIR/." \
199199
--wait \
200200
--timeout 2200s \
201201
--values "$DIR/values.yaml" \

0 commit comments

Comments
 (0)