Created
May 13, 2019 07:51
-
-
Save rkorotaev/94c88c31c4ddd16e9a83a22c3969ec41 to your computer and use it in GitHub Desktop.
Скрипт для AWS CodeBuild (разворачиваем статический сайт на S3 с помощью генератора Hugo)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.2 | |
phases: | |
install: | |
commands: | |
- apt-get update --yes | |
- apt-get upgrade --yes | |
- apt-get install --yes wget awscli | |
finally: | |
- wget https://github.com/gohugoio/hugo/releases/download/v0.55.5/hugo_extended_0.55.5_Linux-64bit.deb | |
- dpkg -i hugo_extended_0.55.5_Linux-64bit.deb | |
build: | |
commands: | |
- hugo | |
- echo "S3 Upload Beginning" | |
- aws s3 sync public/ s3://YOUR_S3_BUCKET/ --delete | |
- echo "S3 Upload Complete" | |
post_build: | |
commands: | |
- echo "Build complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment