Skip to content

Commit

Permalink
fix(circleci): ignore machine images
Browse files Browse the repository at this point in the history
Closes #8656
  • Loading branch information
rarkins committed Feb 11, 2021
1 parent e28e8b4 commit 264ff28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
10 changes: 0 additions & 10 deletions lib/manager/circleci/__snapshots__/extract.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
]
`;

Expand Down
7 changes: 6 additions & 1 deletion lib/manager/circleci/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ {
Expand Down

0 comments on commit 264ff28

Please sign in to comment.