Skip to content

Commit 7123d56

Browse files
committed
Integrate trusted ca into buildah-oci-ta.
1 parent 469071e commit 7123d56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deploy/tasks/buildah-oci-ta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,12 @@ spec:
588588
done < <(find $ADDITIONAL_SECRET_TMP -maxdepth 1 -type f -exec basename {} \;)
589589
fi
590590
591+
if [ -f "$ca_bundle" ]; then
592+
cp -r --preserve=mode /mnt/trusted-ca /tmp/trusted-ca
593+
VOLUME_MOUNTS+=(--volume /tmp/trusted-ca:/etc/pki/ca-trust/source/anchors)
594+
echo "Adding the trusted-ca to the build"
595+
fi
596+
591597
# Prevent ShellCheck from giving a warning because 'image' is defined and 'IMAGE' is not.
592598
declare IMAGE
593599

0 commit comments

Comments
 (0)