|
@@ -70,17 +70,17 @@ steps:
|
|
|
- sudo echo "Docker App started."
|
|
- sudo echo "Docker App started."
|
|
|
|
|
|
|
|
|
|
|
|
|
-# # 清除冗余镜像
|
|
|
|
|
-# - name: cleanup
|
|
|
|
|
-# image: docker:dind
|
|
|
|
|
-# volumes:
|
|
|
|
|
-# - name: docker-sock
|
|
|
|
|
-# path: /var/run/docker.sock
|
|
|
|
|
-# when:
|
|
|
|
|
-# status: [ success ]
|
|
|
|
|
-# commands:
|
|
|
|
|
-# # 删除1小时前创建的未使用镜像
|
|
|
|
|
-# - docker image prune -f --filter "until=1h"
|
|
|
|
|
|
|
+ # 清除冗余镜像
|
|
|
|
|
+ - name: cleanup
|
|
|
|
|
+ image: docker:dind
|
|
|
|
|
+ volumes:
|
|
|
|
|
+ - name: docker-sock
|
|
|
|
|
+ path: /var/run/docker.sock
|
|
|
|
|
+ when:
|
|
|
|
|
+ status: [ success ]
|
|
|
|
|
+ commands:
|
|
|
|
|
+ # 删除1小时前创建的未使用镜像
|
|
|
|
|
+ - docker image prune -f --filter "until=1h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|