[agent-deploy]-甘肃项目

This commit is contained in:
zeaslity
2024-12-06 17:37:59 +08:00
parent 8f5f85826c
commit 5a3c53969c
10 changed files with 159 additions and 30 deletions

View File

@@ -95,6 +95,7 @@ type UploadResultEntity struct {
// PullFromEntityAndSyncConditionally 根据ImageSyncEntity拉取特定的镜像然后上传到特定的目标机器(或者上传的minio中)
func (syncCondition *ImageSyncEntity) PullFromEntityAndSyncConditionally() (imageSyncResult *ImageSyncResult) {
// 初始化 imageSync
imageSyncResult = &ImageSyncResult{
ProcedureSuccessImageList: nil,
DownloadResult: &DownloadResultEntity{
@@ -118,6 +119,7 @@ func (syncCondition *ImageSyncEntity) PullFromEntityAndSyncConditionally() (imag
if (syncCondition.DownloadCondition.CmiiNameTagList == nil && syncCondition.DownloadCondition.FullNameImageList == nil) || (len(syncCondition.DownloadCondition.CmiiNameTagList) == 0 && len(syncCondition.DownloadCondition.FullNameImageList) == 0) {
// 没有指定特定的镜像,那么根据 ProjectVersion 或者从DEMO拉取镜像
// pull images
// compress
if syncCondition.DownloadCondition.ProjectVersion != "" {
@@ -565,6 +567,8 @@ func C_DownloadCompressUploadFromVersion(syncEntity *ImageSyncEntity, syncResult
// build all cmii image name list
allCmiiImageFullNameList := buildAllCmiiImageNameListFromVersion(projectCmiiVersion)
// assign
syncEntity.DownloadCondition.FullNameImageList = allCmiiImageFullNameList
// save all cmii image to file
allImageListTxtFileFullName := filepath.Join(gzipFolderLocalPath, AllCmiiImageListLocalFileName)