зеркало из https://github.com/Azure/ipam.git
Merge pull request #319 from Azure/ipam-actions-fixes2
Added PIP Freeze Timestamp
This commit is contained in:
Коммит
ca0c75b807
|
@ -99,6 +99,7 @@ jobs:
|
|||
working-directory: engine
|
||||
run: |
|
||||
echo "# Dependencies for Azure IPAM v${{ steps.updateVersion.outputs.ipamVersion }}" > requirements.lock.txt
|
||||
echo "# Generated on $(date)" >> requirements.lock.txt
|
||||
pip freeze >> requirements.lock.txt
|
||||
|
||||
- name: Commit Updated Azure IPAM Code
|
||||
|
|
|
@ -198,15 +198,12 @@ try {
|
|||
|
||||
Write-Host "INFO: Running PIP install..." -ForegroundColor Green
|
||||
|
||||
# Remove package directory if it exists
|
||||
Remove-Item -Path TEMP:\packages -Recurse -Force -ErrorAction SilentlyContinue
|
||||
|
||||
# Create temporary directory for PIP packages
|
||||
$packageDir = New-Item -ItemType Directory -Path (Join-Path -Path $tempFolder -ChildPath "packages")
|
||||
|
||||
# Fetch Azure IPAM Engine modules
|
||||
$pipInstallErr = $(
|
||||
$pipInstall = pip install --upgrade -r requirements.lock.txt --target $packageDir.FullName --no-warn-script-location --progress-bar off
|
||||
$pipInstall = pip install -r requirements.lock.txt --target $packageDir.FullName --no-warn-script-location --progress-bar off
|
||||
) 2>&1
|
||||
|
||||
# Switch back to original dir
|
||||
|
|
Загрузка…
Ссылка в новой задаче