diff --git a/lib/manager/circleci/__snapshots__/extract.spec.ts.snap b/lib/manager/circleci/__snapshots__/extract.spec.ts.snap index f5995278cbc27022ea8fdc50bfb4fac5c2ced207..00854ad874788975c64bae1edf27cb946d7a7d76 100644 --- a/lib/manager/circleci/__snapshots__/extract.spec.ts.snap +++ b/lib/manager/circleci/__snapshots__/extract.spec.ts.snap @@ -13,16 +13,6 @@ Array [ "replaceString": "cimg/node:14.8.0", "versioning": "docker", }, - Object { - "autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}", - "currentDigest": undefined, - "currentValue": "201903-01", - "datasource": "docker", - "depName": "ubuntu-1604", - "depType": "docker", - "replaceString": "ubuntu-1604:201903-01", - "versioning": "docker", - }, ] `; diff --git a/lib/manager/circleci/extract.ts b/lib/manager/circleci/extract.ts index c94acb742632d54ae0209fb09c233fe1869ab8a6..6741d4349d9fdc623aba427a7986400d60d2fdc1 100644 --- a/lib/manager/circleci/extract.ts +++ b/lib/manager/circleci/extract.ts @@ -53,7 +53,12 @@ export function extractPackageFile(content: string): PackageFile | null { ); dep.depType = 'docker'; dep.versioning = 'docker'; - deps.push(dep); + if ( + !dep.depName?.startsWith('ubuntu-') && + !dep.depName?.startsWith('windows-server-') + ) { + deps.push(dep); + } } } } catch (err) /* istanbul ignore next */ {