Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mccaffers/hugo-builder-s3
Sets up a docker image to pull a git repository containing a Hugo Blog repository, build the contents and upload to S3. This is used in automating the deployment of static content to S3.
https://github.com/mccaffers/hugo-builder-s3
aws cc0 cc0-license docker hugo hugo-blog lambda s3
Last synced: 2 months ago
JSON representation
Sets up a docker image to pull a git repository containing a Hugo Blog repository, build the contents and upload to S3. This is used in automating the deployment of static content to S3.
- Host: GitHub
- URL: https://github.com/mccaffers/hugo-builder-s3
- Owner: mccaffers
- License: cc0-1.0
- Created: 2021-11-12T16:59:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T12:42:57.000Z (12 months ago)
- Last Synced: 2024-01-30T14:17:37.564Z (12 months ago)
- Topics: aws, cc0, cc0-license, docker, hugo, hugo-blog, lambda, s3
- Language: Shell
- Homepage: https://mccaffers.com
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Hugo Builder S3
Sets up a docker image to pull a git repository containing a Hugo Blog repository, build the contents and upload to S3. This is used in automating the deployment of static content to S3.
The docker image can deployed on an AWS Lambda (there is Python endpoint `main.py` to initiate the hugo builder script `script.sh`). A webhook can then trigger the pull, build and upload to S3.
### BuildBuild image with a number of arguements:
```
docker build -t hugoS3 --build-arg S3BucketName=$S3BucketName --build-arg GitUrl=$Giturl --build-arg ProjectName=$ProjectName SSH_PRIVATE_KEY="$(cat /path/to/key)" --build-arg SSH_KNOWN_HOSTS="$(cat /path/to/known_hosts)" .;
```Run locally or push to ECR and use within an AWS Lambda
### Creative Commons Zero License.
You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. See License.md for more details.