Compare commits
	
		
			2 commits
		
	
	
		
			8345de0de6
			...
			7d43afb7a9
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7d43afb7a9 | |||
| 0676dbed51 | 
					 1 changed files with 21 additions and 1 deletions
				
			
		
							
								
								
									
										22
									
								
								main.js
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								main.js
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -95,6 +95,10 @@ async function main() {
 | 
			
		|||
        console.log(details)
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        core.startGroup("Check sourceDirectory")
 | 
			
		||||
        await exec.exec("ls", ["-la", sourceDirectory])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        if (cpuArchitecture != "amd64") {
 | 
			
		||||
            core.startGroup("Install QEMU")
 | 
			
		||||
            // Need newer QEMU to avoid errors
 | 
			
		||||
| 
						 | 
				
			
			@ -127,6 +131,21 @@ async function main() {
 | 
			
		|||
        ])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        core.startGroup("Check sourceDirectory")
 | 
			
		||||
        await exec.exec("docker", [
 | 
			
		||||
            "exec",
 | 
			
		||||
            container,
 | 
			
		||||
            "ls", "-la", sourceDirectory
 | 
			
		||||
        ])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        core.startGroup("Show container inspect")
 | 
			
		||||
        await exec.exec("docker", [
 | 
			
		||||
            "inspect",
 | 
			
		||||
            container
 | 
			
		||||
        ])
 | 
			
		||||
        core.endGroup()
 | 
			
		||||
 | 
			
		||||
        core.startGroup("Prepare environment")
 | 
			
		||||
        await exec.exec("docker", [
 | 
			
		||||
            "exec",
 | 
			
		||||
| 
						 | 
				
			
			@ -189,7 +208,8 @@ async function main() {
 | 
			
		|||
                "exec",
 | 
			
		||||
                container,
 | 
			
		||||
                "bash", "-c",
 | 
			
		||||
                `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'`
 | 
			
		||||
//                `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'`
 | 
			
		||||
                `cd '${sourceDirectory}' && apt-get build-dep -yq -t '${imageTag}' . || apt-get build-dep -yq .`
 | 
			
		||||
            ])
 | 
			
		||||
            core.endGroup()
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue