Skip to content

Not all compose.yml dependencies are being detected (playwright issue) #28486

Answered by Sergih28
Sergih28 asked this question in Request Help
Discussion options

You must be logged in to vote

Alright guys, I managed to do it, so I'm going to share my solution. 🎉
But I think this should already be done automatically when extending monorepo:playwright.

This detects properly the dependency:

"customManagers": [
  {
      "customType": "regex",
      "fileMatch": [ "^compose.yaml$" ],
      "matchStrings": [ "image: mcr.microsoft.com/playwright:(?<currentValue>.*?)@(?<currentDigest>sha256:[a-f0-9]+)\\s" ],
      "depNameTemplate": "mcr.microsoft.com/playwright",
      "datasourceTemplate": "docker"
  }
]

This makes it show in the same pr with the other playwright dependencies in my Dockerfile and package.json.

"packageRules": [
  {
      "groupName": "Playwright monorepo",
      "…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@viceice
Comment options

@Sergih28
Comment options

Answer selected by Sergih28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants