fix(ci): 指定 jar 文件后缀
This commit is contained in:
@@ -41,7 +41,7 @@ deploy:
|
|||||||
script:
|
script:
|
||||||
- ssh root@$DEPLOY_DEV_HOST_IP "mkdir -p $DEPLOY_PATH"
|
- ssh root@$DEPLOY_DEV_HOST_IP "mkdir -p $DEPLOY_PATH"
|
||||||
- ssh root@$DEPLOY_DEV_HOST_IP "rm -f $DEPLOY_PATH/*.jar"
|
- ssh root@$DEPLOY_DEV_HOST_IP "rm -f $DEPLOY_PATH/*.jar"
|
||||||
- scp ./target/*.jar "root@$DEPLOY_DEV_HOST_IP:$DEPLOY_PATH/"
|
- scp ./target/*-SNAPSHOT.jar "root@$DEPLOY_DEV_HOST_IP:$DEPLOY_PATH/"
|
||||||
- ssh root@$DEPLOY_DEV_HOST_IP "mv $DEPLOY_PATH/*.jar $DEPLOY_PATH/app.jar"
|
- 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/"
|
- 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"
|
- ssh root@$DEPLOY_DEV_HOST_IP "cd $DEPLOY_PATH && su xxs && docker-compose up -d --force-recreate"
|
||||||
|
7
pom.xml
7
pom.xml
@@ -154,6 +154,13 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<includeSystemScope>true</includeSystemScope>
|
<includeSystemScope>true</includeSystemScope>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
Reference in New Issue
Block a user