Skip to content

Commit

Permalink
Merge pull request #13 from qonto/upgrade-hugo
Browse files Browse the repository at this point in the history
Upgrade Hugo to 0.120.4
  • Loading branch information
vmercierfr authored Nov 23, 2023
2 parents d5f4ff8 + 431b00b commit 67df613
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
group: "pages" # Allow one concurrent deployment
cancel-in-progress: true
env:
HUGO_VERSION: 0.115.4
HUGO_VERSION: 0.120.4
BASE_URL: https://qonto.github.io/database-monitoring-framework
environment:
name: github-pages
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.1'
services:
hugo:
image: klakegg/hugo:0.111.0-ext-ubuntu
command: server -D --poll 700ms
image: hugomods/hugo:${HUGO_VERSION-git-0.120.4}
command: hugo server -D --bind 0.0.0.0 --poll 700ms
volumes:
- ".:/src"
ports:
Expand Down
27 changes: 27 additions & 0 deletions docs/hugo-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Hugo upgrade

[Hugo](https://github.com/gohugoio/hugo) engine is frequently updated by the team to add features or bug fixes.

Here is the process to upgrade Hugo:

1. Test new Hugo version locally

1. Launch Hugo with new version:

```bash
export HUGO_VERSION=<new_version>
docker compose up
```

1. Check website rendering on <http://localhost:1313>

Checklist:

- Check runbook (including SQL rendering) in runbook (e.g. `PostgreSQLInactiveLogicalReplicationSlot` runbook)
- Check tabs are correctly rendered in tutorials (e.g. `RDS exporter deployment`)
- Check search engine
- Check "last update" information in page footer

1. Upgrade Hugo version for local development environment in `docker-compose.yaml`

1. Upgrade Hugo version for CI in `.github/workflows/release.yaml`

0 comments on commit 67df613

Please sign in to comment.