try different directory structure
	
		
			
	
		
	
	
		
			
				
	
				Gitea/subman-nextjs/pipeline/head This commit looks good
				
					Details
				
			
		
	
				
					
				
			
				
	
				Gitea/subman-nextjs/pipeline/head This commit looks good
				
					Details
				
			
		
	This commit is contained in:
		
							parent
							
								
									01e7e20686
								
							
						
					
					
						commit
						85f93b8ec4
					
				| 
						 | 
				
			
			@ -9,10 +9,12 @@ agent any
 | 
			
		|||
			steps{
 | 
			
		||||
				sh 'npm install'
 | 
			
		||||
				sh 'npm run build'
 | 
			
		||||
				sh 'cp -r public .next/standalone/'
 | 
			
		||||
				sh 'cp -r prisma .next/standalone/'
 | 
			
		||||
				sh 'cp -r .next/static .next/standalone/'
 | 
			
		||||
				sh ' tar -C .next -cf subman.tar.gz standalone '
 | 
			
		||||
				sh 'mkdir build'
 | 
			
		||||
				sh 'cp -r public build/'
 | 
			
		||||
				sh 'cp -r prisma build/'
 | 
			
		||||
				sh 'cp -r .next/static build/.next/'
 | 
			
		||||
				sh 'cp -r .next/standalone/** build/'
 | 
			
		||||
				sh ' tar -cf subman.tar.gz build '
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		stage('deploy'){
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue