Merge "Prune docker images after docker-compose up"
This commit is contained in:
commit
157ad6d521
@ -45,6 +45,9 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: docker-compose up -d --timeout 60
|
cmd: docker-compose up -d --timeout 60
|
||||||
chdir: /etc/gitea-docker/
|
chdir: /etc/gitea-docker/
|
||||||
|
- name: Run docker prune to cleanup unneeded images
|
||||||
|
shell:
|
||||||
|
cmd: docker image prune -f
|
||||||
- name: Check if root user exists
|
- name: Check if root user exists
|
||||||
uri:
|
uri:
|
||||||
url: "https://localhost:3000/api/v1/users/root"
|
url: "https://localhost:3000/api/v1/users/root"
|
||||||
|
@ -32,3 +32,6 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: docker-compose up -d
|
cmd: docker-compose up -d
|
||||||
chdir: /etc/haproxy-docker/
|
chdir: /etc/haproxy-docker/
|
||||||
|
- name: Run docker prune to cleanup unneeded images
|
||||||
|
shell:
|
||||||
|
cmd: docker image prune -f
|
||||||
|
@ -49,6 +49,9 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: docker-compose up -d
|
cmd: docker-compose up -d
|
||||||
chdir: /etc/registry-docker/
|
chdir: /etc/registry-docker/
|
||||||
|
- name: Run docker prune to cleanup unneeded images
|
||||||
|
shell:
|
||||||
|
cmd: docker image prune -f
|
||||||
|
|
||||||
- name: Install cron to garbage collect the registry daily
|
- name: Install cron to garbage collect the registry daily
|
||||||
cron:
|
cron:
|
||||||
|
@ -15,3 +15,6 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: docker-compose up -d
|
cmd: docker-compose up -d
|
||||||
chdir: /etc/zuul-preview-docker/
|
chdir: /etc/zuul-preview-docker/
|
||||||
|
- name: Run docker prune to cleanup unneeded images
|
||||||
|
shell:
|
||||||
|
cmd: docker image prune -f
|
||||||
|
Loading…
Reference in New Issue
Block a user