0
1
Fork 0

Deploy fixes

This commit is contained in:
Juan Ferrer 2022-07-27 10:18:14 +02:00
parent 264a2c5f58
commit 87c3e8e11b
5 changed files with 15 additions and 22 deletions

19
Jenkinsfile vendored
View File

@ -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 {

2
debian/compat vendored
View File

@ -1 +1 @@
9
10

2
debian/control vendored
View File

@ -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

2
debian/install vendored
View File

@ -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

12
debian/rules vendored
View File

@ -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)