From 08084a987501939544da1a1c7ee102819e2480ce Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Mon, 19 Oct 2020 14:15:39 +0200 Subject: [PATCH] feat: auto-update docker and git tags on release --- docs/config.js | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/config.js b/docs/config.js index bd506676eca6..485617e9432c 100644 --- a/docs/config.js +++ b/docs/config.js @@ -9,7 +9,7 @@ module.exports = { files: ['docs/docs/quickstart.mdx'] }, { - replacer: ({ content, next }) => + replacer: ({content, next}) => content.replace( /git checkout (v[0-9a-zA-Z\\.\\-]+)/gi, `git checkout ${next}` @@ -20,12 +20,28 @@ module.exports = { ] }, { - replacer: ({ content, next }) => + replacer: ({content, next,semverRegex}) => content.replace( - /v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gi, + semverRegex, `${next}` ), files: ['docs/docs/install.md', 'docs/docs/quickstart.mdx'] + }, + { + replacer: ({content, next}) => + content.replace( + /oryd\/kratos:(v[0-9a-zA-Z\\.\\-]+)/gi, + `oryd/kratos:${next}-sqlite` + ), + files: ['quickstart.yml'] + }, + { + image: 'oryd/kratos', + files: [ + 'quickstart-mysql.yml', + 'quickstart-crdb.yml', + 'quickstart-postgres.yml', + ] } ], updateConfig: {