    echo "Processing deploy.sh"
    # Set EB BUCKET as env variable 
    EB_BUCKET=elasticbeanstalk-us-east-1-034677532976
    # Set the default region for aws cli 
    aws configure set default.region us-east-1
    # Log in to ECR 
    eval $(aws ecr get-login --no-include-email --region us-east-1)
    # Build docker image based on our production Dockerfile 
    docker build -t kevinlifan/rekuberate .
    # tag the image with the GitHub SHA 
    docker tag kevinlifan/rekuberate:latest 034677532976.dkr.ecr.us-east-1.amazonaws.com/rekuberate:$GITHUB_SHA
    # Push built image to ECS
    docker push 034677532976.dkr.ecr.us-east-1.amazonaws.com/rekuberate:$GITHUB_SHA
    # Use the linux sed command to replace the text '<VERSION>' in our Dockerrun file with the GitHub SHA key 
    sed -i='' "s/<VERSION>/$GITHUB_SHA/" Dockerrun.aws.json
    # Zip up our codebase, along with modified Dockerrun and our .ebextensions directory 
    zip -r rekuberate.zip Dockerrun.aws.json .ebextensions
    # Upload zip file to s3 bucket
    aws s3 cp rekuberate.zip s3://$EB_BUCKET/rekuberate.zip
    # Create a new application version with new Dockerrun 
    aws elasticbeanstalk create-application-version --application-name rekub --version-label $GITHUB_SHA --source-bundle S3Bucket=$EB_BUCKET,S3Key=rekuberate.zip
    # Update environment to use new version number
    aws elasticbeanstalk update-environment --environment-name Rekub-env --version-label $GITHUB_SHA