Skip to content

Commit

Permalink
Add dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Feb 12, 2024
1 parent a514bdf commit e96f208
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
21 changes: 19 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,27 @@
"extends": [
"local>myrotvorets/.github:renovate-config"
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^.devcontainer/devcontainer\\.json$",
"^.devcontainer\\.json$"
],
"matchStrings": [
"\"image\":\\s\"(?<depName>[^:\"]+):(?<currentValue>[^@\"]+)(@(?<currentDigest>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
}
]
}

0 comments on commit e96f208

Please sign in to comment.