Commit 12f50a17 by 钟明宏

注释掉推送镜像和取消定时任务

parent 83af40f8
......@@ -177,7 +177,7 @@
<newName>${docker.registry}/${docker.repository}:latest</newName>
</configuration>
</execution>
<execution>
<!--<execution>
<id>push-image</id>
<phase>package</phase>
<goals>
......@@ -186,7 +186,7 @@
<configuration>
<imageName>${docker.registry}/${docker.repository}:latest</imageName>
</configuration>
</execution>
</execution>-->
</executions>
</plugin>
</plugins>
......
......@@ -24,9 +24,9 @@ public class FileCleanTask {
@Autowired
private SystemFile systemFile;
private final long halfYear = 6L * 31 * 24 * 60 * 60 * 1000;
private final long halfYear = 6L * 31 * 24 * 60 * 60 * 1000 * 12;
@Scheduled(cron = "0 0 0 1 * ? ")
//@Scheduled(cron = "0 0 0 1 * ? ")
public void cleanFile() {
File[] files = systemFile.getWwwDir().listFiles();
for (File file : files) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment