From 3fed035e6f6a2147c17b03a0157f03c1732b70cf Mon Sep 17 00:00:00 2001 From: Vincent Mercier Date: Wed, 22 Nov 2023 21:57:09 +0100 Subject: [PATCH 1/2] chore(hugo): Upgrade to 0.120.4 --- .github/workflows/release.yaml | 2 +- docker-compose.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 561dc26..2914168 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 2c2eee9..1f71467 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: From 431b00bcb8122a9f1721a90032e7090fb590d645 Mon Sep 17 00:00:00 2001 From: Vincent Mercier Date: Thu, 23 Nov 2023 10:14:24 +0100 Subject: [PATCH 2/2] doc(hugo): Add hugo upgrade process --- docs/hugo-upgrade.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/hugo-upgrade.md diff --git a/docs/hugo-upgrade.md b/docs/hugo-upgrade.md new file mode 100644 index 0000000..c186f5c --- /dev/null +++ b/docs/hugo-upgrade.md @@ -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= + docker compose up + ``` + + 1. Check website rendering on + + 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`