Skip to content
Snippets Groups Projects
Commit 4c1a0784 authored by Jon Azpiazu's avatar Jon Azpiazu
Browse files

Skip debug mode and reduce verbosity

parent 2c21e985
No related branches found
No related tags found
1 merge request!73Resolve "Force `ddeploy` options (e.g. image retention)"
Pipeline #60019 failed
...@@ -15,7 +15,7 @@ if ! docker inspect --type=image "$1" > /dev/null ; then ...@@ -15,7 +15,7 @@ if ! docker inspect --type=image "$1" > /dev/null ; then
fi fi
for label in "${!enforced_labels[@]}" ; do for label in "${!enforced_labels[@]}" ; do
if ! docker inspect -f "{{json .Config.Labels }}" "$image_name" | jq -e '.['\"$label\"']' ; then if ! docker inspect -f "{{json .Config.Labels }}" "$image_name" | jq -e '.['\"$label\"']' > /dev/null ; then
echo "Key not found" echo "Key not found"
echo "$label = ${enforced_labels[$label]}" echo "$label = ${enforced_labels[$label]}"
label_args+=" --label $label=\"${enforced_labels[$label]}\"" label_args+=" --label $label=\"${enforced_labels[$label]}\""
...@@ -24,5 +24,5 @@ done ...@@ -24,5 +24,5 @@ done
if [ -v label_args ]; then if [ -v label_args ]; then
run_command="echo \"FROM $image_name\" | docker build $label_args -t $image_name -" run_command="echo \"FROM $image_name\" | docker build $label_args -t $image_name -"
echo "$run_command" eval "$run_command"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment