Skip to content

Commit

Permalink
Update TODO and rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Sep 18, 2023
1 parent 0a8efa0 commit e480b9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions copy-updater-files.ps1 → update-files.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion updater/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit e480b9b

Please sign in to comment.