From f920438ee4394626e77587b094b9ac1e77696e46 Mon Sep 17 00:00:00 2001 From: han0 Date: Wed, 15 Nov 2023 11:18:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E6=8C=87=E5=AE=9A=20jar=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 4 ++-- pom.xml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9af7cc8..0398bb2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,7 +41,7 @@ deploy: script: - ssh root@$DEPLOY_DEV_HOST_IP "mkdir -p $DEPLOY_PATH" - ssh root@$DEPLOY_DEV_HOST_IP "rm -f $DEPLOY_PATH/*.jar" - - scp ./target/*.jar "root@$DEPLOY_DEV_HOST_IP:$DEPLOY_PATH/" - - ssh root@$DEPLOY_DEV_HOST_IP "mv $DEPLOY_PATH/*.jar $DEPLOY_PATH/app.jar" + - scp ./target/*-SNAPSHOT.jar "root@$DEPLOY_DEV_HOST_IP:$DEPLOY_PATH/" + - ssh root@$DEPLOY_DEV_HOST_IP "mv $DEPLOY_PATH/*-SNAPSHOT.jar $DEPLOY_PATH/app.jar" - scp ./docker-compose.yml "root@$DEPLOY_DEV_HOST_IP:$DEPLOY_PATH/" - ssh root@$DEPLOY_DEV_HOST_IP "cd $DEPLOY_PATH && su xxs && docker-compose up -d --force-recreate" diff --git a/pom.xml b/pom.xml index 82067c4..7a4223e 100644 --- a/pom.xml +++ b/pom.xml @@ -154,6 +154,13 @@ true + + + + repackage + + +