Update regex to also match version/x.y.z

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-05-15 19:36:01 +02:00 committed by Backportbot
parent fcd5fc667e
commit c7d3556b72

View file

@ -1,7 +1,8 @@
#!/usr/bin/env bash
echo
if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version\/noid\/.+ ]]; then
printenv
if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version(\/noid)?\/([0-9.]+) ]]; then
echo "Skip CA bundle check"
exit 0
fi