Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .codebuild/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,35 @@ deploy_nano_testnet() {
fi;
}

deploy_nano_testnet_hackaton() {
# Deploys the releases and release-candidates to our nano-testnet-hackaton environment

# We deploy only the Lambdas here, because the daemon used in nano-testnet-hackaton is the same as
# the one built in the hathor-network account, since it runs there as well

echo "Building git ref ${GIT_REF_TO_DEPLOY}..."

# This will match both releases and release-candidates
if expr "${GIT_REF_TO_DEPLOY}" : "v.*" >/dev/null; then
make migrate;
make deploy-lambdas-nano-testnet-hackaton;

send_slack_message "New version deployed to nano-testnet-hackaton: ${GIT_REF_TO_DEPLOY}"
elif expr "${MANUAL_DEPLOY}" : "true" >/dev/null; then
make migrate;
make deploy-lambdas-nano-testnet-hackaton;

send_slack_message "Branch manually deployed to nano-testnet-hackaton: ${GIT_REF_TO_DEPLOY}"
elif expr "${ROLLBACK}" : "true" >/dev/null; then
make migrate;
make deploy-lambdas-nano-testnet-hackaton;

send_slack_message "Rollback performed on nano-tesnet-hackaton to: ${GIT_REF_TO_DEPLOY}";
else
echo "We don't deploy ${GIT_REF_TO_DEPLOY} to nano-testnet-hackaton. Nothing to do.";
fi;
}

deploy_ekvilibro_mainnet() {
# Deploys the releases to our ekvilibro-mainnet environment

Expand Down Expand Up @@ -219,6 +248,9 @@ case $option in
nano-testnet)
deploy_nano_testnet
;;
nano-testnet-hackaton)
deploy_nano_testnet_hackaton
;;
ekvilibro-testnet)
deploy_ekvilibro_testnet
;;
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ push-daemon:
deploy-lambdas-nano-testnet:
AWS_SDK_LOAD_CONFIG=1 yarn workspace wallet-service run serverless deploy --stage nano --region eu-central-1 --aws-profile nano-testnet

.PHONY: deploy-lambdas-nano-testnet-hackaton
deploy-lambdas-nano-testnet-hackaton:
AWS_SDK_LOAD_CONFIG=1 yarn workspace wallet-service run serverless deploy --stage hackaton --region eu-central-1 --aws-profile nano-testnet-hackaton

.PHONY: deploy-lambdas-ekvilibro-testnet
deploy-lambdas-ekvilibro-testnet:
AWS_SDK_LOAD_CONFIG=1 yarn workspace wallet-service run serverless deploy --stage ekvilibro --region eu-central-1 --aws-profile ekvilibro
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet-service/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ functions:
path: health
method: get
throttling:
maxRequestsPerSecond: 1
maxConcurrentRequests: 1
maxRequestsPerSecond: 2
maxConcurrentRequests: 2
deleteStalePushDevices:
handler: src/db/cronRoutines.cleanStalePushDevices
events:
Expand Down