From 2689fd84404be570f3d886d91f31fb65e8e42abf Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 14 Oct 2018 19:21:39 +0200 Subject: [PATCH] Revert "Fix headers" This reverts commit 7a62aaccda0d56466702b558d60368bebf838440. --- ...2018-07-20_deploying-hugo-with-gitea-and-droneci.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/post/2018-07-20_deploying-hugo-with-gitea-and-droneci.md b/content/post/2018-07-20_deploying-hugo-with-gitea-and-droneci.md index 1de8404..31d7a31 100644 --- a/content/post/2018-07-20_deploying-hugo-with-gitea-and-droneci.md +++ b/content/post/2018-07-20_deploying-hugo-with-gitea-and-droneci.md @@ -21,7 +21,7 @@ on another machine. I decided, a better setup was needed. -# Goal +## Goal The goal of the new pipeline should be to automatically build and deploy the blog when commit is made to the repository: @@ -32,7 +32,7 @@ deploy the blog when commit is made to the repository: +-------------------+ +------------+ +------------------+ ``` -# Setup +## Setup A few weeks ago, I setup [DroneCI][2] aside my [Gitea][3] instance. There is a [great plugin for DroneCI][4] to build Hugo websites. @@ -74,9 +74,9 @@ deploy the blog to other targets. There are plugins to deploy to [AWS S3][11], use [FTP(S)][12] for uploading and many others. Only the `deploy` step in the pipeline needs to be replaced. -# Improving the Pipeline +## Improving the Pipeline -## Ahead-of-Time Compression +### Ahead-of-Time Compression To take the load of compressing requested files from my web server, I use the [`gzip_static` module][7] of nginx. The compression is done @@ -136,7 +136,7 @@ pipeline: secrets: [ rsync_key ] ``` -## Multiple Environments +### Multiple Environments At this point I thought it would be fun to implement a staging area for the blog to test unreleased drafts and get feedback on them,