From e480b9beeeb74e5dd265bb31f0de80eceb040b76 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Mon, 18 Sep 2023 06:44:41 +0300 Subject: [PATCH] Update TODO and rename file --- copy-updater-files.ps1 => update-files.ps1 | 5 +++++ updater/Dockerfile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) rename copy-updater-files.ps1 => update-files.ps1 (96%) diff --git a/copy-updater-files.ps1 b/update-files.ps1 similarity index 96% rename from copy-updater-files.ps1 rename to update-files.ps1 index d9a4cb67..e60514a2 100644 --- a/copy-updater-files.ps1 +++ b/update-files.ps1 @@ -4,6 +4,11 @@ $versionLine = $gemfileContent | Select-String 'gem "dependabot-omnibus", "(.*)" $version = [regex]::Match($versionLine, '"~>(\d+\.\d+\.\d+)"').Groups[1].Value Write-Output "Found dependabot-omnibus version: $version" +# # Update the version in the Dockerfile +# $dockerfile = Get-Content -Path "updater/Dockerfile" -Raw +# $dockerfile = ($dockerfile -replace '(?<=ARG DEPENDABOT_VERSION=)(\d+\.\d+\.\d+)', $version).Trim() +# $dockerfile | Set-Content -Path "updater/Dockerfile" + # Prepare the list of files to be downloaded $files = @( ".ruby-version" diff --git a/updater/Dockerfile b/updater/Dockerfile index 28236879..2e0b5375 100644 --- a/updater/Dockerfile +++ b/updater/Dockerfile @@ -1,4 +1,5 @@ -#TODO: find out how to lock the base image version +# The docker images in https://github.com/dependabot/dependabot-core are no longer versioned like the ruby Gems +#TODO: find out how to lock the base image version without the ruby Gem version ARG ECOSYSTEM FROM ghcr.io/dependabot/dependabot-updater-$ECOSYSTEM