-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
# This workflow will build a docker image and deploy it to trustwallet stating \ | ||
# and production environments | ||
|
||
# yamllint disable rule:line-length | ||
name: Version_Release | ||
on: | ||
push: | ||
tags: | ||
- V0.** | ||
jobs: | ||
js_build_test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [21.x] | ||
# node-version: [14.x, 16.x, 18.x, 20.x] | ||
# See supported Node.js release schedule at | ||
# https://nodejs.org/en/about/releases/ | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Yarn install, build and test | ||
run: echo "In the steps below we will build and run first set of tests for all components" | ||
- run: echo yarn install | ||
- run: echo yarn lint | ||
- run: echo yarn build | ||
- run: echo yarn test | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Dump GITHUB_REF | ||
run: echo "${GITHUB_REF}" | ||
|
||
container_img_build_push_gar: | ||
needs: [js_build_test] | ||
# Allow the job to fetch a GitHub ID token | ||
permissions: | ||
id-token: write | ||
contents: read | ||
# The plan is to build and push each docker image in parallel. | ||
strategy: | ||
matrix: | ||
image: | ||
- us-west1-docker.pkg.dev/artifact-registry-1191/bundler/bundler | ||
# LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/IMAGE | ||
# {owner}/{repo}/.github/workflows/{filename}@{ref} | ||
uses: bcnmy/bundler/.github/workflows/container_img_build_push_gar.yaml@master | ||
with: | ||
image: ${{ matrix.image }} | ||
dockerfile: Dockerfile.helm | ||
# GCP project where the identity provider is | ||
gcp_project_number: '334188102066' | ||
gcp_pool_id: 'github-pool' | ||
gcp_provider_id: 'github-actions-wif-provider' | ||
# LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/IMAGE | ||
gcp_registry: 'us-west1-docker.pkg.dev/artifact-registry-1191/bundler/bundler' | ||
gcp_service_account: 'sa-bundler@workload-identity-e697.iam.gserviceaccount.com' | ||
|
||
# deploy_staging: | ||
# needs: [container_img_build_push_gar] | ||
# # Allow the job to fetch a GitHub ID token | ||
# # runs-on: ubuntu-latest | ||
# permissions: | ||
# id-token: write | ||
# contents: read | ||
# uses: bcnmy/bundler/.github/workflows/deploy_to_gke.yaml@master | ||
# with: | ||
# # GCP project where the identity provider is | ||
# # gcloud projects describe prj-workload-identity-001 | ||
# gcp_project_number: '334188102066' | ||
# gcp_project_id: 'biconomy-staging' | ||
# gcp_bastion: 'bastion02' | ||
# gcp_bastion_zone: 'us-east1-b' | ||
# gcp_pool_id: 'github-pool' | ||
# gcp_provider_id: 'github-actions-wif-provider' | ||
# # SERVICE_ACCOUNT_EMAIL="${SERVICE_ACCOUNT}@${PROJECT}.iam.gserviceaccount.com" | ||
# gcp_service_account: 'sa-bundler@workload-identity-e697.iam.gserviceaccount.com' | ||
# gcp_cluster_name: 'biconomy-staging' | ||
# gcp_cluster_location: 'us-east1-b' | ||
# use_internal_ip: true | ||
# deploy_command: './k8s/deploy.sh 1 refactor refactor-bundler sdk-staging' | ||
|
||
|
||
|