1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-14 09:14:27 -04:00

revert CI changes and update index lastmod manually

This commit is contained in:
2019-03-31 11:26:56 -04:00
parent a74527774a
commit 244fcf862d
2 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
image: python:3.7
image: python:3.6-alpine
variables:
HUGO_VERSION: '0.53' # https://github.com/gohugoio/hugo/releases
@@ -6,6 +6,9 @@ variables:
AWSCLI_VERSION: '1.16.21' # https://github.com/aws/aws-cli/blob/master/CHANGELOG.rst
before_script:
# update alpine
- apk update && apk add openssl coreutils
# download and install Hugo
- wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
- echo "${HUGO_SHA} hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" | sha256sum -c
@@ -14,11 +17,11 @@ before_script:
# install awscli
- pip install --quiet --no-cache-dir awscli==${AWSCLI_VERSION}
deploy:
deploy:
script:
# build site
- rm -rf public
- hugo --gc --enableGitInfo
- hugo --gc
# upload all files
- aws s3 sync ./public s3://$S3_BUCKET_NAME --delete --region us-east-1 --cache-control "max-age=86400, public" --metadata-directive "REPLACE"