forked from Hessu1337/myblog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add s3 endpoint url, first post draft, buildspec for AWS CodeBuild
- Loading branch information
Hessu
committed
Jan 30, 2020
1 parent
d791b18
commit 205b7df
Showing
4 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
s3_output: "blog.gonzague.pagin" | ||
hugo_version: "0.63.2" | ||
|
||
phases: | ||
install: | ||
commands: | ||
- wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_${hugo_version}_Linux-64bit.deb" | ||
- sudo dpkg -i hugo_${hugo_version}_Linux-64bit.deb | ||
finally: | ||
- hugo version | ||
build: | ||
commands: | ||
- hugo | ||
- cd public && aws s3 sync . s3:https://${s3_output} --delete --acl public-read | ||
finally: | ||
- echo "Script finished running" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: "How This Blog Is Made" | ||
date: 2020-01-30T17:30:58+01:00 | ||
draft: true | ||
--- | ||
|
||
I wanted something simple, using github and aws, a simple workflow : write then push | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "My First Post" | ||
date: 2020-01-30T17:14:05+01:00 | ||
draft: true | ||
draft: false | ||
--- | ||
|
||
Hello world! | ||
|
||
Deployed from pipeline |