From 5d6df2cad3ec4a0b35d44d82586fbfc11440b296 Mon Sep 17 00:00:00 2001 From: Artur Date: Thu, 3 Oct 2024 13:06:23 +0200 Subject: [PATCH] "mkdir -p /apps_data/jars && cp ./target/*.jar /apps_data/jars --- deploy-this/deploy-dc.yml | 2 +- deploy-this/deploy.jenkinsfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy-this/deploy-dc.yml b/deploy-this/deploy-dc.yml index fe01e07..4c562c8 100644 --- a/deploy-this/deploy-dc.yml +++ b/deploy-this/deploy-dc.yml @@ -20,7 +20,7 @@ services: - 8800:8800/tcp # exposing port for www volumes: - - apps_data:/_apps_data_ + - apps_data:/apps_data deploy: resources: diff --git a/deploy-this/deploy.jenkinsfile b/deploy-this/deploy.jenkinsfile index 4901699..a5ddda2 100644 --- a/deploy-this/deploy.jenkinsfile +++ b/deploy-this/deploy.jenkinsfile @@ -43,7 +43,8 @@ pipeline{ sh "mvn clean package" - sh "cp ./target/*.jar /_apps_data_" + + sh "mkdir -p /apps_data/jars && cp ./target/*.jar /apps_data/jars" sh "docker compose -f deploy-this/deploy-dc.yml up --detach"