Skip to content

Commit 542cc50

Browse files
authored
Fix issue in Docker Security Tests where qualifier is not being parsed correctly (#1401)
* Switch qualifier for 3.0.0 from alpha1 to beta1 and fix docker tests Signed-off-by: Craig Perkins <[email protected]> * Check for non-empty Signed-off-by: Craig Perkins <[email protected]> * Remove extra then Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]>
1 parent 05bba7b commit 542cc50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docker-security-test-workflow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ jobs:
2828
list_of_all_files=`ls build/distributions/`
2929
version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-3`
3030
plugin_version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-4`
31-
qualifier=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-1`
31+
qualifier=`echo $plugin|awk -F- '{print $5}'| cut -d. -f 1-1`
3232
candidate_version=`echo $plugin|awk -F- '{print $5}'| cut -d. -f 1-1`
33-
if qualifier
34-
then
33+
if [ -n "$qualifier" ]; then
3534
docker_version=$version-$qualifier
3635
else
3736
docker_version=$version

0 commit comments

Comments
 (0)