alpine-hugo for circleci deploy
include awscli and git
.circleci/config.yml
version: 2
jobs:
build:
docker:
- image: amothic/alpine-hugo:latest
working_directory: ~/project
steps:
- checkout
- run:
name: Submodule init
command: |
git submodule init
git submodule update
- run:
name: Build
command: |
HUGO_ENV=production hugo -v
- run:
name: Sync S3
command: |
aws s3 sync public s3://< your bucket name >/ --delete
- run:
name: Create invalidation
command: |
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id < your distribution id > --paths "/*"
Content type
Image
Digest
Size
48.6 MB
Last updated
over 7 years ago
docker pull amothic/alpine-hugo