
Features: - Build packs for popular frontend frameworks. It will help to understand which build packs should be chosen. Fixes: - Github queries optimized. - Save repositories to store (faster navigation). - Remove unnecessary data on dashboard requests. - Speed up static site builds with a lot. UI: - Redesign of the application deployment page. - Redesign of database deployments page.
16 lines
604 B
JavaScript
16 lines
604 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 new Error('No custom dockerfile found.')
|
|
}
|
|
}
|