Skip to content

Commit

Permalink
buildspec.yaml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sfdevops committed Jan 20, 2025
1 parent 7b7ebd5 commit dea6f20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions files/tenant-samples/bridge/buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ phases:
- apt-get update -y && apt-get install -y jq unzip
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh && chmod 700 get_helm.sh && ./get_helm.sh --version v3.12.3
- npm i @aws-sdk/client-eventbridge
- ln -sf $EVENT_FILE_PATH /usr/local/bin/webhook #create webhook symlink and will execute webhook at every phase to update status in control plane
- ln -sf $EVENT_FILE_PATH /usr/local/bin/event #create symlink and will execute event.js at every phase to send event to eventbridge
finally:
- node $EVENT_FILE_PATH
pre_build:
Expand Down Expand Up @@ -132,7 +132,7 @@ phases:
commands:
- export CODEBUILD_BUILD_POSTBUILD=1
- export CREATE_USER=1
# To run the webhook which will send notification and create tenant first admin user in pooled database
# To run the event.js which will send event to eventbridge
- node $EVENT_FILE_PATH
- python push_to_dynamodb.py # pushing tenant config to dynamodb based on tenant_id mapping

Expand Down
4 changes: 2 additions & 2 deletions files/tenant-samples/pooled/buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ phases:
- apt-get update -y && apt-get install -y jq unzip
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh && chmod 700 get_helm.sh && ./get_helm.sh --version v3.12.3
- npm i @aws-sdk/client-eventbridge
- ln -sf $EVENT_FILE_PATH /usr/local/bin/webhook #create webhook symlink and will execute webhook at every phase to update status in control plane
- ln -sf $EVENT_FILE_PATH /usr/local/bin/event #create symlink and will execute event.js at every phase to send event to eventbridge
finally:
- node $EVENT_FILE_PATH
pre_build:
Expand Down Expand Up @@ -130,7 +130,7 @@ phases:
commands:
- export CODEBUILD_BUILD_POSTBUILD=1
- export CREATE_USER=1
# To run the webhook which will send notification and create tenant first admin user in pooled database
# To run the event.js which will event to eventbridge
- node $EVENT_FILE_PATH
- python push_to_dynamodb.py # pushing tenant config to dynamodb based on tenant_id mapping

Expand Down
2 changes: 1 addition & 1 deletion files/tenant-samples/silo/buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ phases:
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh && chmod 700 get_helm.sh && ./get_helm.sh --version v3.12.3
- pip install boto3
- npm i @aws-sdk/client-eventbridge
- ln -sf $EVENT_FILE_PATH /usr/local/bin/webhook #create webhook symlink and will execute webhook at every phase to update status in control plane
- ln -sf $EVENT_FILE_PATH /usr/local/bin/event #create symlink and will execute event.js at every phase to send event to eventbridge
finally:
- ls -la
- node $EVENT_FILE_PATH
Expand Down

0 comments on commit dea6f20

Please sign in to comment.