-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
49 lines (41 loc) · 844 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
variables:
GIT_STRATEGY: none
stages:
- scan
- cleanup
.default:
when: manual
allow_failure: true
.wstage:
extends: .default
tags: [wstage, shell]
wstage scan:
stage: scan
extends: .wstage
script:
- docker system df
- Get-PSDrive
wstage cleanup:
stage: cleanup
extends: .wstage
script:
- docker image prune -af
- docker volume prune -f
- docker system prune -af
.dev:
extends: .default
tags: [dev, shell]
dev scan:
stage: scan
extends: .dev
script:
- docker system df
- du -h / 2>/dev/null | sort -h | tail -n200 || true
dev cleanup:
stage: cleanup
extends: .dev
script:
- docker exec registry registry garbage-collect /etc/docker/registry/config.yml --delete-untagged=true
- docker image prune -f
- docker volume prune -f
- docker system prune -af