Skip to content

Commit

Permalink
ci: Add option to upload installation scripts automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
cruizba committed Oct 30, 2020
1 parent 0e4bbc4 commit d5e8470
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openvidu-server/deployments/pro/aws/createAMIs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ sed -i "s/AMIUSEAST1/${AMIUSEAST1}/g" cfn-mkt-kms-ami.yaml
aws s3 cp cfn-mkt-kms-ami.yaml s3://aws.openvidu.io
TEMPLATE_URL=https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/cfn-mkt-kms-ami.yaml

# Update installation script
if [[ ${UPDATE_INSTALLATION_SCRIPT} == "true" ]]; then
aws s3 cp ../docker-compose/media-node/install_media_node.sh s3://aws.openvidu.io/install_media_node_$OPENVIDU_PRO_VERSION.sh --acl public-read
fi

aws cloudformation create-stack \
--stack-name kms-${DATESTAMP} \
--template-url ${TEMPLATE_URL} \
Expand Down Expand Up @@ -79,6 +84,11 @@ aws cloudformation delete-stack --stack-name kms-${DATESTAMP}
aws s3 cp cfn-mkt-ov-ami.yaml s3://aws.openvidu.io
TEMPLATE_URL=https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/cfn-mkt-ov-ami.yaml

# Update installation script
if [[ ${UPDATE_INSTALLATION_SCRIPT} == "true" ]]; then
aws s3 cp ../docker-compose/openvidu-server-pro/install_openvidu_pro.sh s3://aws.openvidu.io/install_openvidu_pro_$OPENVIDU_PRO_VERSION.sh --acl public-read
fi

aws cloudformation create-stack \
--stack-name openvidu-${DATESTAMP} \
--template-url ${TEMPLATE_URL} \
Expand Down

0 comments on commit d5e8470

Please sign in to comment.