heroku buildpack init

This commit is contained in:
Andras Bacsai 2022-08-11 13:20:34 +00:00
parent 7dd19c322d
commit 45be1cb49a
3 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,15 @@
import { executeDockerCmd, prisma } from "../common"
export default async function (data: any): Promise<void> {
// console.log(data)
const {applicationId, tag, dockerId} = data
// try {
await executeDockerCmd({
dockerId,
command: `pack build ${applicationId}:${tag} --builder heroku/buildpacks:20`
})
// } catch (error) {
// throw error;
// }
}

View File

@ -15,6 +15,7 @@ import eleventy from './static';
import python from './python';
import deno from './deno';
import laravel from './laravel';
import heroku from './heroku';
export {
node,
@ -33,5 +34,6 @@ export {
eleventy,
python,
deno,
laravel
laravel,
heroku
};

View File

@ -292,7 +292,13 @@ export const buildPacks = [
fancyName: 'Deno',
hoverColor: 'hover:bg-green-700',
color: 'bg-green-700'
}
},
{
name: 'heroku',
fancyName: 'Heroku Buildpack',
hoverColor: 'hover:bg-indigo-700',
color: 'bg-indigo-700'
}
];
export const scanningTemplates = {
'@sveltejs/kit': {