Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add dotnet docker source urls #14613

Merged
merged 1 commit into from Mar 11, 2022
Merged

Conversation

gitfool
Copy link
Contributor

@gitfool gitfool commented Mar 11, 2022

Changes

Adds dotnet docker source urls to manualSourceUrls in lib/modules/datasource/metadata-manual.ts:

Context

Closes #14420.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository (gitfool/cake-docker/pull/48), or
  • Both unit tests + ran on a real repository
Click to expand Renovate test log extract...
DEBUG: packageFiles with updates (repository=gitfool/cake-docker)
       "config": {
         "cake": [
           {
             "packageFile": "build.cake",
             "deps": [
               {
                 "datasource": "nuget",
                 "depName": "Cake.Dungeon",
                 "currentValue": null,
                 "depIndex": 0,
                 "updates": [],
                 "warnings": [],
                 "versioning": "nuget",
                 "skipReason": "invalid-value"
               }
             ]
           }
         ],
         "dockerfile": [
           {
             "packageFile": "Dockerfile",
             "deps": [
               {
                 "depName": "mcr.microsoft.com/dotnet/sdk",
                 "currentValue": "6.0.101-focal",
                 "replaceString": "mcr.microsoft.com/dotnet/sdk:6.0.101-focal",
                 "autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
                 "datasource": "docker",
                 "depType": "final",
                 "depIndex": 0,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "6.0.201",
                     "newValue": "6.0.201-focal",
                     "newMajor": 6,
                     "newMinor": 0,
                     "updateType": "patch",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "docker",
                 "sourceUrl": "https://github.com/dotnet/sdk",
                 "currentVersion": "6.0.101",
                 "isSingleVersion": true,
                 "fixedVersion": "6.0.101-focal"
               }
             ]
           }
         ],
         "github-actions": [
           {
             "packageFile": ".github/workflows/ci.yaml",
             "deps": [
               {
                 "depName": "actions/checkout",
                 "commitMessageTopic": "{{{depName}}} action",
                 "datasource": "github-tags",
                 "versioning": "docker",
                 "depType": "action",
                 "replaceString": "actions/checkout@v3.0.0",
                 "autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # tag={{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
                 "currentValue": "v3.0.0",
                 "depIndex": 0,
                 "updates": [],
                 "warnings": [],
                 "sourceUrl": "https://github.com/actions/checkout",
                 "currentVersion": "v3.0.0",
                 "fixedVersion": "v3.0.0"
               },
               {
                 "depName": "actions/setup-dotnet",
                 "commitMessageTopic": "{{{depName}}} action",
                 "datasource": "github-tags",
                 "versioning": "docker",
                 "depType": "action",
                 "replaceString": "actions/setup-dotnet@v2.0.0",
                 "autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # tag={{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
                 "currentValue": "v2.0.0",
                 "depIndex": 1,
                 "updates": [],
                 "warnings": [],
                 "sourceUrl": "https://github.com/actions/setup-dotnet",
                 "currentVersion": "v2.0.0",
                 "fixedVersion": "v2.0.0"
               },
               {
                 "depName": "docker/login-action",
                 "commitMessageTopic": "{{{depName}}} action",
                 "datasource": "github-tags",
                 "versioning": "docker",
                 "depType": "action",
                 "replaceString": "docker/login-action@v1.13.0",
                 "autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # tag={{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
                 "currentValue": "v1.13.0",
                 "depIndex": 2,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "v1.14.1",
                     "newValue": "v1.14.1",
                     "releaseTimestamp": "2022-03-01T19:56:39.000Z",
                     "newMajor": 1,
                     "newMinor": 14,
                     "updateType": "minor",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "sourceUrl": "https://github.com/docker/login-action",
                 "currentVersion": "v1.13.0",
                 "isSingleVersion": true,
                 "fixedVersion": "v1.13.0"
               }
             ]
           }
         ],
         "gitlabci": [
           {
             "packageFile": ".gitlab-ci.yml",
             "deps": [
               {
                 "depName": "docker",
                 "currentValue": "dind",
                 "replaceString": "docker:dind",
                 "autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
                 "datasource": "docker",
                 "depType": "service-image",
                 "depIndex": 0,
                 "updates": [],
                 "warnings": [],
                 "versioning": "docker",
                 "skipReason": "invalid-value"
               }
             ]
           }
         ],
         "nuget": [
           {
             "packageFile": ".config/dotnet-tools.json",
             "deps": [
               {
                 "depType": "nuget",
                 "depName": "cake.tool",
                 "currentValue": "2.0.0",
                 "datasource": "nuget",
                 "registryUrls": ["https://api.nuget.org/v3/index.json"],
                 "depIndex": 0,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "2.1.0",
                     "newValue": "2.1.0",
                     "releaseTimestamp": "2022-02-20T00:18:46.100Z",
                     "newMajor": 2,
                     "newMinor": 1,
                     "updateType": "minor",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "nuget",
                 "sourceUrl": "https://github.com/cake-build/cake",
                 "homepage": "https://cakebuild.net/",
                 "currentVersion": "2.0.0",
                 "isSingleVersion": true,
                 "fixedVersion": "2.0.0"
               }
             ]
           }
         ],
         "regex": [
           {
             "packageFile": ".github/workflows/ci.yaml",
             "deps": [
               {
                 "depName": "dotnet-sdk",
                 "packageName": "mcr.microsoft.com/dotnet/sdk",
                 "currentValue": "6.0.101",
                 "datasource": "docker",
                 "depType": "action",
                 "replaceString": "# renovate: datasource=docker depName=dotnet-sdk lookupName=mcr.microsoft.com/dotnet/sdk\n          dotnet-version: 6.0.101\n",
                 "depIndex": 0,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "6.0.201",
                     "newValue": "6.0.201",
                     "newMajor": 6,
                     "newMinor": 0,
                     "updateType": "patch",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "docker",
                 "sourceUrl": "https://github.com/dotnet/sdk",
                 "currentVersion": "6.0.101",
                 "isSingleVersion": true,
                 "fixedVersion": "6.0.101"
               }
             ],
             "matchStrings": [
               "# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: lookupName=(?<packageName>.+?))?\\s+dotnet-version: (?<currentValue>.+?)\\s"
             ],
             "depTypeTemplate": "action"
           },
           {
             "packageFile": ".azure-pipelines.yaml",
             "deps": [
               {
                 "depName": "dotnet-sdk",
                 "packageName": "mcr.microsoft.com/dotnet/sdk",
                 "currentValue": "6.0.101",
                 "datasource": "docker",
                 "depType": "task",
                 "replaceString": "# renovate: datasource=docker depName=dotnet-sdk lookupName=mcr.microsoft.com/dotnet/sdk\n          version: 6.0.101\n",
                 "depIndex": 0,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "6.0.201",
                     "newValue": "6.0.201",
                     "newMajor": 6,
                     "newMinor": 0,
                     "updateType": "patch",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "docker",
                 "sourceUrl": "https://github.com/dotnet/sdk",
                 "currentVersion": "6.0.101",
                 "isSingleVersion": true,
                 "fixedVersion": "6.0.101"
               }
             ],
             "matchStrings": [
               "# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: lookupName=(?<packageName>.+?))?\\s+version: (?<currentValue>.+?)\\s"
             ],
             "depTypeTemplate": "task"
           },
           {
             "packageFile": ".gitlab-ci.yml",
             "deps": [
               {
                 "depName": "dotnet-sdk",
                 "packageName": "mcr.microsoft.com/dotnet/sdk",
                 "currentValue": "6.0.101",
                 "datasource": "docker",
                 "depType": "script",
                 "replaceString": "# renovate: datasource=docker depName=dotnet-sdk lookupName=mcr.microsoft.com/dotnet/sdk\n    - curl -fsSL https://dot.net/v1/dotnet-install.sh | bash -s -- --version 6.0.101\n",
                 "depIndex": 0,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "6.0.201",
                     "newValue": "6.0.201",
                     "newMajor": 6,
                     "newMinor": 0,
                     "updateType": "patch",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "docker",
                 "sourceUrl": "https://github.com/dotnet/sdk",
                 "currentVersion": "6.0.101",
                 "isSingleVersion": true,
                 "fixedVersion": "6.0.101"
               }
             ],
             "matchStrings": [
               "# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: lookupName=(?<packageName>.+?))?\\s+.+?[Vv]ersion (?<currentValue>.+?)[\"\\s]"
             ],
             "depTypeTemplate": "script"
           },
           {
             "packageFile": "Dockerfile",
             "deps": [
               {
                 "depName": "cake.tool",
                 "currentValue": "2.0.0",
                 "datasource": "nuget",
                 "extractVersion": "^v?(?<version>.+)$",
                 "depType": "run",
                 "replaceString": "# renovate: datasource=nuget depName=cake.tool\nRUN version=2.0.0 ",
                 "depIndex": 0,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "2.1.0",
                     "newValue": "2.1.0",
                     "releaseTimestamp": "2022-02-20T00:18:46.100Z",
                     "newMajor": 2,
                     "newMinor": 1,
                     "updateType": "minor",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "nuget",
                 "sourceUrl": "https://github.com/cake-build/cake",
                 "homepage": "https://cakebuild.net/",
                 "currentVersion": "2.0.0",
                 "isSingleVersion": true,
                 "fixedVersion": "2.0.0"
               },
               {
                 "depName": "docker",
                 "packageName": "moby/moby",
                 "currentValue": "20.10.11",
                 "datasource": "github-releases",
                 "extractVersion": "^v?(?<version>.+)$",
                 "depType": "run",
                 "replaceString": "# renovate: datasource=github-releases depName=docker lookupName=moby/moby\nRUN version=20.10.11 ",
                 "depIndex": 1,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "20.10.13",
                     "newValue": "20.10.13",
                     "releaseTimestamp": "2022-03-10T18:59:43.000Z",
                     "newMajor": 20,
                     "newMinor": 10,
                     "updateType": "patch",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "semver",
                 "sourceUrl": "https://github.com/moby/moby",
                 "currentVersion": "20.10.11",
                 "isSingleVersion": true,
                 "fixedVersion": "20.10.11"
               },
               {
                 "depName": "docker-compose",
                 "packageName": "docker/compose",
                 "currentValue": "2.2.2",
                 "datasource": "github-releases",
                 "extractVersion": "^v?(?<version>.+)$",
                 "depType": "run",
                 "replaceString": "# renovate: datasource=github-releases depName=docker-compose lookupName=docker/compose\nRUN version=2.2.2 ",
                 "depIndex": 2,
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "2.3.3",
                     "newValue": "2.3.3",
                     "releaseTimestamp": "2022-03-09T14:00:18.000Z",
                     "newMajor": 2,
                     "newMinor": 3,
                     "updateType": "minor",
                     "branchName": "renovate/minor"
                   }
                 ],
                 "warnings": [],
                 "versioning": "semver",
                 "sourceUrl": "https://github.com/docker/compose",
                 "currentVersion": "2.2.2",
                 "isSingleVersion": true,
                 "fixedVersion": "2.2.2"
               }
             ],
             "matchStrings": [
               "# renovate: datasource=(?<datasource>.+?) depName=(?<depName>.+?)(?: lookupName=(?<packageName>.+?))?(?: depType=(?<depType>.+?))?(?: extractVersion=(?<extractVersion>.+?))?(?: versioning=(?<versioning>.+?))?\\sRUN version=(?<currentValue>.+?)\\s"
             ],
             "extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^v?(?<version>.+)${{/if}}",
             "depTypeTemplate": "{{#if depType}}{{depType}}{{else}}run{{/if}}"
           }
         ]
       }

@viceice viceice enabled auto-merge (squash) March 11, 2022 20:18
@viceice viceice merged commit 079c219 into renovatebot:main Mar 11, 2022
@gitfool gitfool deleted the gh14420 branch March 11, 2022 20:32
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add manual source urls for dotnet docker images
3 participants