Skip to content

Commit 6c8bbb8

Browse files
authored
Merge pull request #445 from NHSDigital/CCM-1179-release-process
CCM-1179
2 parents e6b09c2 + 3ea647e commit 6c8bbb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

azure/templates/deploy-service.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ steps:
132132
export RELEASE_RELEASEID=$(Build.BuildId)
133133
134134
if [[ $SERVICE_ARTIFACT_NAME == v* ]]; then
135-
export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -o "v[0-9]\+\.[0-9]\+\.[0-9]\+-[[:alpha:]]\+" | tail -1`
135+
export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" | tail -1`
136136
else
137137
export DEPLOYED_VERSION="${{ parameters.fully_qualified_service_name }}"
138138
fi
@@ -203,7 +203,7 @@ steps:
203203
source $(SERVICE_DIR)/.build_env_vars
204204
205205
if [[ $SERVICE_ARTIFACT_NAME == v* ]]; then
206-
export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -o "v[0-9]\+\.[0-9]\+\.[0-9]\+-[[:alpha:]]\+" | tail -1`
206+
export DEPLOYED_VERSION=`echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" | tail -1`
207207
else
208208
export DEPLOYED_VERSION="${{ parameters.fully_qualified_service_name }}"
209209
fi

0 commit comments

Comments
 (0)