Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tecnalia_robotics-public
templates
Commits
4c1a0784
Commit
4c1a0784
authored
Nov 09, 2021
by
Jon Azpiazu
Browse files
Skip debug mode and reduce verbosity
parent
2c21e985
Pipeline
#60019
failed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/enforce_labels.bash
View file @
4c1a0784
...
...
@@ -15,7 +15,7 @@ if ! docker inspect --type=image "$1" > /dev/null ; then
fi
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
"
$label
=
${
enforced_labels
[
$label
]
}
"
label_args+
=
" --label
$label
=
\"
${
enforced_labels
[
$label
]
}
\"
"
...
...
@@ -24,5 +24,5 @@ done
if
[
-v
label_args
]
;
then
run_command
=
"echo
\"
FROM
$image_name
\"
| docker build
$label_args
-t
$image_name
-"
e
cho
"
$run_command
"
e
val
"
$run_command
"
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment