File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ PUSH_IMAGES = $(addprefix push-, $(IMAGES))
24
24
25
25
.PHONY : build sdk-openssl example-test-agent example-resource-agent \
26
26
images fetch integ-test show-variables cargo-deny tools $(IMAGES ) \
27
- tag-images $(TAG_IMAGES ) push-images $(PUSH_IMAGES )
27
+ tag-images $(TAG_IMAGES ) push-images $(PUSH_IMAGES ) print-image-names
28
28
29
29
export DOCKER_BUILDKIT =1
30
30
export CARGO_HOME = $(TOP ) /.cargo
@@ -44,6 +44,20 @@ fetch:
44
44
45
45
images : fetch $(IMAGES )
46
46
47
+ # This target prints the image names. It may be useful to write loops over the names of the containers. For example, we
48
+ # might want to check to make sure a repository exists for each image (i.e. maybe a new container has been added to the
49
+ # list since we last pushed, so maybe we need to create a new repository).
50
+ #
51
+ # Example:
52
+ # declare -a arr=($(make print-image-names))
53
+ # for image_name in "${arr[@]}"
54
+ # do
55
+ # echo "do something with $image_name"
56
+ # done
57
+ print-image-names :
58
+ $(info $(IMAGES ) )
59
+ @echo > /dev/null
60
+
47
61
# Builds, Lints and Tests the Rust workspace
48
62
build : fetch
49
63
cargo fmt -- --check
You can’t perform that action at this time.
0 commit comments