From 116e1814d6c124f3d03fce586b49c3fd927d64f6 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Tue, 6 Feb 2024 00:52:29 +0000 Subject: [PATCH] fix(forgejo): skip yaml frontmatter - Update the forgejo configuration to skip the YAML frontmatter when rendering asciidoc files. - Upgrade the base image from alpine:3.18 to alpine:3.19 --- templates/forgejo/Dockerfile.gotmpl | 2 +- templates/forgejo/app.ini.gotmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/forgejo/Dockerfile.gotmpl b/templates/forgejo/Dockerfile.gotmpl index 2e588c1..888e6ff 100644 --- a/templates/forgejo/Dockerfile.gotmpl +++ b/templates/forgejo/Dockerfile.gotmpl @@ -2,7 +2,7 @@ # the official Dockerfile.rootless from https://github.com/go-gitea/gitea/ # syntax=docker/dockerfile:1 -FROM alpine:3.18 +FROM alpine:3.19 ENV FORGEJO_CUSTOM={{ .Forgejo.Custom }} \ FORGEJO_APP_INI={{ .Forgejo.AppIni }} \ diff --git a/templates/forgejo/app.ini.gotmpl b/templates/forgejo/app.ini.gotmpl index e96e1a1..be3dac9 100644 --- a/templates/forgejo/app.ini.gotmpl +++ b/templates/forgejo/app.ini.gotmpl @@ -133,7 +133,7 @@ ENABLED = true [markup.asciidoc] ENABLED = true FILE_EXTENSIONS = .adoc,.asciidoc -RENDER_COMMAND = "asciidoctor -s -a showtitle --out-file=- -" +RENDER_COMMAND = "asciidoctor -s -a showtitle -a skip-front-matter --out-file=- -" ; Input is not a standard input but a file IS_INPUT_FILE = false