From e96f208ff04775f0a63437ac32d9664b0c0846fe Mon Sep 17 00:00:00 2001 From: Myrotvorets Date: Mon, 12 Feb 2024 13:16:36 +0200 Subject: [PATCH] Add dev container --- .devcontainer/devcontainer.json | 5 +++++ .github/renovate.json | 21 +++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..cebfd41 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "name": "WP Criminals Sitemaps", + "image": "ghcr.io/sjinks/codespaces/wordpress-all-in-one:3", + "postCreateCommand": "ln -sf ${containerWorkspaceFolder} /wp/wp-content/plugins/wp-criminals-sitemap; wp plugin activate wp-criminals-sitemap" +} diff --git a/.github/renovate.json b/.github/renovate.json index 539a746..c44f709 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -3,10 +3,27 @@ "extends": [ "local>myrotvorets/.github:renovate-config" ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^.devcontainer/devcontainer\\.json$", + "^.devcontainer\\.json$" + ], + "matchStrings": [ + "\"image\":\\s\"(?[^:\"]+):(?[^@\"]+)(@(?sha256:[a-f0-9]+))?\"" + ], + "autoReplaceStringTemplate": "\"image\": \"{{{depName}}}:{{{newValue}}}{{#if newDigest}}@{{{newDigest}}}{{/if}}\"", + "datasourceTemplate": "docker" + } + ], "packageRules": [ { - "matchPackageNames": ["react", "react-dom", "@wordpress/api-fetch", "@wordpress/i18n", "@types/react", "@types/react-dom"], - "enabled": false + "matchManagers": [ + "regex" + ], + "matchFileNames": [".devcontainer/**/devcontainer.json"], + "automerge": true } ] }