diff options
| author | Kumar Damani <me@kumardamani.net> | 2024-07-13 01:22:35 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2024-07-13 01:22:35 +0000 |
| commit | 577dea975275ade403982a8ff17cf73e7cc129cf (patch) | |
| tree | 32022a6ff1bc55901d25ec58129b2b25e4612930 /deploy.sh | |
| parent | 3e5e4d5a88edec1ceb0544baa3e41321dc3e26db (diff) | |
added flake. updated docs, deploy script. updated cv.
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 |
