-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
38 lines (33 loc) · 861 Bytes
/
Copy pathTaskfile.yaml
File metadata and controls
38 lines (33 loc) · 861 Bytes
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
---
version: 3
vars:
DOCKER_IMAGES:
# Skip the Rancher Desktop proxy image, and images with a '<none>' tag.
sh: >-
docker images
--format='{{`{{-
if and
(ne .Repository "ghcr.io/rancher-sandbox/rancher-desktop/rdx-proxy")
(ne .Tag "<none>")
}}{{.Repository}}:{{.Tag}}{{end}}`}}'
tasks:
default: task --list-all
docker:pull:
ignore_error: true
interactive: true
internal: true
silent: true
desc: Pull a Docker image.
requires:
vars:
- DOCKER_IMAGE
cmd: docker pull {{.DOCKER_IMAGE}}
# TODO: split on same repo but different tag, so downloads don't duplicate/repeat
topgrade:docker-pull:
desc: Pull all Docker images in parallel.
deps:
- for:
var: DOCKER_IMAGES
task: docker:pull
vars:
DOCKER_IMAGE: '{{.ITEM}}'