forked from verdnatura/hedera-web
refs #4922 Deploy fixes
This commit is contained in:
parent
cfceee4838
commit
a8d5f06866
|
@ -62,11 +62,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
|
||||||
always {
|
|
||||||
sh 'rm -r debuild'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
|
|
|
@ -9,6 +9,9 @@ clean:
|
||||||
npm run clean
|
npm run clean
|
||||||
dh_clean $@
|
dh_clean $@
|
||||||
|
|
||||||
|
override_dh_clean:
|
||||||
|
dh_clean
|
||||||
|
|
||||||
build:
|
build:
|
||||||
npm install --no-audit --prefer-offline
|
npm install --no-audit --prefer-offline
|
||||||
npx quasar build
|
npx quasar build
|
||||||
|
|
|
@ -1,41 +1,9 @@
|
||||||
version: '3.7'
|
version: '3.7'
|
||||||
services:
|
services:
|
||||||
main:
|
main:
|
||||||
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
|
image: registry.verdnatura.es/verdnatura/hedera-web:${TAG:?}
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
- VERSION=${VERSION:?}
|
- VERSION=${VERSION:?}
|
||||||
ports:
|
|
||||||
- 80
|
|
||||||
configs:
|
|
||||||
- source: config
|
|
||||||
target: /etc/hedera-web/config.my.php
|
|
||||||
volumes:
|
|
||||||
- /mnt/appdata:/mnt/storage
|
|
||||||
- /mnt/appdata/image:/var/lib/hedera-web/image-db
|
|
||||||
- /mnt/appdata/vn-access:/var/lib/hedera-web/vn-access
|
|
||||||
deploy:
|
|
||||||
replicas: ${MAIN_REPLICAS:?}
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.role == worker
|
|
||||||
cron:
|
|
||||||
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
|
|
||||||
command: 'cron -f'
|
|
||||||
configs:
|
|
||||||
- source: config
|
|
||||||
target: /etc/hedera-web/config.my.php
|
|
||||||
volumes:
|
|
||||||
- /mnt/appdata:/mnt/storage
|
|
||||||
- /mnt/appdata/image:/var/lib/hedera-web/image-db
|
|
||||||
deploy:
|
|
||||||
replicas: ${CRON_REPLICAS:?}
|
|
||||||
placement:
|
|
||||||
constraints:
|
|
||||||
- node.role == worker
|
|
||||||
configs:
|
|
||||||
config:
|
|
||||||
external: true
|
|
||||||
name: ${PROJECT_NAME:?}-${BRANCH_NAME:?}
|
|
||||||
|
|
Loading…
Reference in New Issue