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
parent f08aed74d7
commit 3e9f9ea06b
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 3 additions and 2 deletions

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