Skip to content

Commit e026f00

Browse files
committed
Add ability to skip pushing metadata
1 parent 69b94f6 commit e026f00

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/metadata.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ function set_prebuilt_image() {
5656
local service="$2"
5757
local image="$3"
5858

59+
# assumes that the lib/shared.bash has already been sourced
60+
if [ "$(plugin_read_config PUSH_METADATA "true")" != "true" ]; then
61+
plugin_prompt "Not setting metadata for prebuilt image, push-metadata option is set to false"
62+
return 0
63+
fi
64+
5965
plugin_set_metadata "$namespace" "$(prebuilt_image_meta_data_key "$service")" "$image"
6066
}
6167

0 commit comments

Comments
 (0)