newtheatre/history-project

View on GitHub
_bin/deploy.sh

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
set -euo pipefail

curl -L https://github.com/bep/s3deploy/releases/download/v2.11.0/s3deploy_2.11.0_linux-amd64.tar.gz -o _bin/s3deploy.tar.gz
mkdir -p _bin/s3deploy
tar -xf _bin/s3deploy.tar.gz -C _bin/s3deploy
rm _bin/s3deploy.tar.gz

echo "Deploying to S3 using path: $DEPLOY_NAME"

_bin/s3deploy/s3deploy \
  -bucket $AWS_S3_BUCKET -key $AWS_ACCESS_KEY_ID -secret $AWS_SECRET_ACCESS_KEY \
  -region $AWS_REGION -config .s3deploy.yml -source dist -path v1/$DEPLOY_NAME