Skip to content

Commit

Permalink
feat: auto-update docker and git tags on release
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2020
1 parent e73c4ce commit 08084a9
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions docs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand All @@ -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: {
Expand Down

0 comments on commit 08084a9

Please sign in to comment.