diff options
Diffstat (limited to 'deploy.sh')
| -rwxr-xr-x | deploy.sh | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -1,21 +1,5 @@ #!/usr/bin/env bash # more like build + deploy - -docker run --rm -it \ - -v $(pwd):/src \ - klakegg/hugo:latest - +hugo source .env -docker run -t --rm \ - -v "$(pwd)/public:/public/" \ - --env AWS_BUCKET_NAME="${AWS_BUCKET_NAME}" \ - --env AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" \ - --env AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" \ - --env AWS_ENDPOINT="${AWS_ENDPOINT}" \ - --env AWS_UPLOAD_DIR="${AWS_UPLOAD_DIR}" \ - --env AWS_LOCAL_DIR="${AWS_LOCAL_DIR}" \ - python:latest \ - bash -c '\ - pip install awscli; - aws --endpoint-url ${AWS_ENDPOINT} s3 cp ${AWS_LOCAL_DIR} s3://${AWS_BUCKET_NAME}/${AWS_UPLOAD_DIR} --recursive - ' +AWS_CONFIG_FILE=credentials aws --endpoint-url ${AWS_ENDPOINT} s3 cp ${AWS_LOCAL_DIR} s3://${AWS_BUCKET_NAME}/${AWS_UPLOAD_DIR} --recursive |
