refs #4922 Deploy fixes

This commit is contained in:
Juan Ferrer 2024-11-25 16:59:26 +01:00
parent cfceee4838
commit a8d5f06866
3 changed files with 4 additions and 38 deletions

5
Jenkinsfile vendored
View File

@ -62,11 +62,6 @@ pipeline {
}
}
}
post {
always {
sh 'rm -r debuild'
}
}
}
stage('Deploy') {
when {

3
debian/rules vendored
View File

@ -9,6 +9,9 @@ clean:
npm run clean
dh_clean $@
override_dh_clean:
dh_clean
build:
npm install --no-audit --prefer-offline
npx quasar build

View File

@ -1,41 +1,9 @@
version: '3.7'
services:
main:
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
image: registry.verdnatura.es/verdnatura/hedera-web:${TAG:?}
build:
context: .
dockerfile: Dockerfile
args:
- 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:?}