1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-04-26 06:05:23 -04:00

Configure Renovate (#5)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Jarvis <jake@jarv.is>
This commit is contained in:
renovate[bot] 2023-03-15 09:59:24 -04:00 committed by GitHub
parent bdfadabde1
commit 3d5a32a41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 7 deletions

View File

@ -1,15 +1,14 @@
# the following version can be overridden at image build time with --build-arg # the following version can be overridden at image build time with --build-arg
# renovate: datasource=github-releases depName=gohugoio/hugo
ARG HUGO_VERSION=0.111.3 ARG HUGO_VERSION=0.111.3
# remove/comment the following line completely to compile vanilla Hugo: # remove/comment the following line completely to compile vanilla Hugo:
ARG HUGO_BUILD_TAGS=extended ARG HUGO_BUILD_TAGS=extended
# Hugo >= v0.81.0 requires Go 1.16+ to build
ARG GO_VERSION=1.19
ARG ALPINE_VERSION=3.17
# --- # ---
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS build # Hugo >= v0.81.0 requires Go 1.16+ to build
FROM golang:1.19-alpine3.17 AS build
# renew global args from above # renew global args from above
# https://docs.docker.com/engine/reference/builder/#scope # https://docs.docker.com/engine/reference/builder/#scope
@ -48,14 +47,16 @@ RUN go install github.com/yaegashi/muslstack@latest && \
# --- # ---
FROM alpine:${ALPINE_VERSION} FROM alpine:3.17
# renew global args from above & pin any dependency versions # renew global args from above & pin any dependency versions
ARG HUGO_VERSION ARG HUGO_VERSION
# https://github.com/jgm/pandoc/releases # https://github.com/jgm/pandoc/releases
# renovate: datasource=github-releases depName=jgm/pandoc
ARG PANDOC_VERSION=2.19.2 ARG PANDOC_VERSION=2.19.2
# https://github.com/sass/dart-sass-embedded/releases # https://github.com/sass/dart-sass-embedded/releases
ARG DART_SASS_VERSION=1.58.3 # renovate: datasource=github-releases depName=sass/dart-sass-embedded
ARG DART_SASS_VERSION=1.59.3
LABEL version="${HUGO_VERSION}" LABEL version="${HUGO_VERSION}"
LABEL repository="https://github.com/jakejarvis/hugo-docker" LABEL repository="https://github.com/jakejarvis/hugo-docker"

18
renovate.json Normal file
View File

@ -0,0 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"automerge": false,
"regexManagers": [
{
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?_VERSION=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}