build in separate folder
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
740a57b30e
commit
a5c6f9d3cb
|
@ -9,9 +9,10 @@ agent any
|
||||||
steps{
|
steps{
|
||||||
sh 'npm install'
|
sh 'npm install'
|
||||||
sh 'npm run build'
|
sh 'npm run build'
|
||||||
sh 'cp -r public .next/standalone/'
|
sh 'mkdir standalone'
|
||||||
sh 'cp -r prisma .next/standalone/'
|
sh 'cp -r public standalone/'
|
||||||
sh 'cp -r .next/static .next/standalone/'
|
sh 'cp -r prisma standalone/'
|
||||||
|
sh 'cp -r .next/static standalone/.next/'
|
||||||
sh ' tar -C .next -cf subman.tar.gz standalone '
|
sh ' tar -C .next -cf subman.tar.gz standalone '
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +29,7 @@ agent any
|
||||||
deleteDirs: true,
|
deleteDirs: true,
|
||||||
disableDeferredWipeout: true,
|
disableDeferredWipeout: true,
|
||||||
notFailBuild: true,
|
notFailBuild: true,
|
||||||
patterns: [[pattern: '.gitignore', type: 'INCLUDE'],
|
patterns: [[pattern: '**/*', type: 'INCLUDE'],
|
||||||
[pattern: '.propsfile', type: 'EXCLUDE']])
|
[pattern: '.propsfile', type: 'EXCLUDE']])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue