fix(ci): 指定 jar 文件后缀

This commit is contained in:
han0
2023-11-15 11:18:02 +08:00
parent 8490918fd3
commit f920438ee4
2 changed files with 9 additions and 2 deletions

View File

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

View File

@@ -154,6 +154,13 @@
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>