- Search in repositories (thanks to @SaraVieira).
- Custom Dockerfile - you be able to deploy ANY applications! 🎉 
- Basic repository scanner for Nextjs and React. It will setup the default commands and buildpack if it detects some defined parameters.
- UI/UX fixes:
  - Github loading screen instead of standard loading screen. 
  - Info tooltips which provide some explanations of the input fields.
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			617 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			617 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const fs = require('fs').promises
 | 
						|
const { streamEvents, docker } = require('../../libs/docker')
 | 
						|
 | 
						|
module.exports = async function (configuration) {
 | 
						|
  const path = `${configuration.general.workdir}/${configuration.build.directory ? configuration.build.directory : ''}`
 | 
						|
  if (fs.stat(`${path}/Dockerfile`)) {
 | 
						|
    const stream = await docker.engine.buildImage(
 | 
						|
      { src: ['.'], context: path },
 | 
						|
      { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }
 | 
						|
    )
 | 
						|
    await streamEvents(stream, configuration)
 | 
						|
  } else {
 | 
						|
    throw { error: 'No custom dockerfile found.', type: 'app' }
 | 
						|
  }
 | 
						|
}
 |