fix image load
This commit is contained in:
		
							parent
							
								
									ebdc9df70f
								
							
						
					
					
						commit
						6c656da951
					
				| @ -162,6 +162,12 @@ func (sd *SwarmDeployer) Deploy() error { | |||||||
| 
 | 
 | ||||||
| 	log.Info().Str("archive", sd.archivePath).Msg("deploying archive to swarm...") | 	log.Info().Str("archive", sd.archivePath).Msg("deploying archive to swarm...") | ||||||
| 
 | 
 | ||||||
|  | 	if sd.project.ImageName != "" { | ||||||
|  | 		if _, err := sd.conn.Execute("docker image load -i " + sd.project.ImageName + ".tar"); err != nil { | ||||||
|  | 			return err | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	archiveDestPath := filepath.Base(sd.archivePath) | 	archiveDestPath := filepath.Base(sd.archivePath) | ||||||
| 	log.Info(). | 	log.Info(). | ||||||
| 		Str("archive", sd.archivePath). | 		Str("archive", sd.archivePath). | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 rmanach
						rmanach