forked from verdnatura/hedera-web
Deploy fixes
This commit is contained in:
parent
264a2c5f58
commit
87c3e8e11b
|
@ -29,25 +29,6 @@ pipeline {
|
|||
setEnv()
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
when {
|
||||
anyOf {
|
||||
branch 'master'
|
||||
branch 'test'
|
||||
}
|
||||
}
|
||||
environment {
|
||||
NODE_ENV = ""
|
||||
}
|
||||
steps {
|
||||
nodejs('node-v14') {
|
||||
sh 'npm install --no-audit --prefer-offline'
|
||||
sh 'npm --production run build'
|
||||
sh 'cp package.json package-lock.json build'
|
||||
sh 'cd build && npm install --omit=dev --no-audit --prefer-offline'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Debuild') {
|
||||
when {
|
||||
anyOf {
|
||||
|
|
|
@ -1 +1 @@
|
|||
9
|
||||
10
|
|
@ -1,7 +1,7 @@
|
|||
Source: hedera-web
|
||||
Priority: optional
|
||||
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
|
||||
Build-Depends: build-essential, debhelper
|
||||
Build-Depends: build-essential, debhelper, nodejs
|
||||
Standards-Version: 3.9.3
|
||||
Section: misc
|
||||
Homepage: https://verdnatura.es
|
||||
|
|
|
@ -16,4 +16,4 @@ package.json usr/share/hedera-web
|
|||
build usr/share/hedera-web
|
||||
README.md usr/share/hedera-web
|
||||
webpack.config.json usr/share/hedera-web
|
||||
build/node_modules usr/share/hedera-web
|
||||
build-deps/node_modules usr/share/hedera-web
|
||||
|
|
|
@ -4,3 +4,15 @@
|
|||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
clean:
|
||||
npm --production run clean
|
||||
dh_clean $@
|
||||
|
||||
build:
|
||||
npm install --no-audit --prefer-offline
|
||||
npm --production run build
|
||||
|
||||
mkdir build-deps
|
||||
cp package.json package-lock.json build-deps
|
||||
(cd build-deps && npm install --omit=dev --no-audit --prefer-offline)
|
||||
|
|
Loading…
Reference in New Issue