很多修改
This commit is contained in:
17
998-常用脚本/镜像同步/imageSyncDownload.ps1
Normal file
17
998-常用脚本/镜像同步/imageSyncDownload.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
# 指定文件路径
|
||||
$filePath = "D:\CmiiDeployOffline\ZheJiangErJiPingTai\all-gzip-image-list.txt"
|
||||
# 指定下载的目标目录
|
||||
$destinationFolder = "D:\CmiiDeployOffline\ZheJiangErJiPingTai"
|
||||
|
||||
# 创建目标目录(如果不存在)
|
||||
if (-not (Test-Path $destinationFolder)) {
|
||||
New-Item -ItemType Directory -Path $destinationFolder
|
||||
}
|
||||
|
||||
# 读取文件并下载每一行的 URL
|
||||
Get-Content $filePath | ForEach-Object {
|
||||
$url = $_
|
||||
Write-Output $url
|
||||
# $fileName = Join-Path $destinationFolder (Split-Path $url -Leaf)
|
||||
# Invoke-WebRequest -Uri $url -OutFile $fileName
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
harbor_host=10.40.51.5:8033
|
||||
namespace=ynejpt
|
||||
namespace=zygazww
|
||||
app_name=""
|
||||
new_tag=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user