Skip to content

Commit

Permalink
Fix release multi for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
thohng committed Sep 5, 2023
1 parent da6fe85 commit 0c725ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
$tokens = $tagRaw -split '_'
foreach($token in $tokens) {
$isMatchVersion = $token.Contains('${{ matrix.image.ver }}')
$pattern = '^(?<version>\d+\.\d+(\.\d+)?)(-(?<preview>[a-zA-Z.]+[\-\.]?\d+)([\-\.].*)?)?$'
$pattern = '^(?<version>\d+\.\d+(\.\d+)?)(-(?<preview>[a-zA-Z.]+([\-\.]?\d+)?)([\-\.].*)?)?$'
if (!$isMatchVersion) {
if ($token -match $pattern -And '${{ matrix.image.ver }}' -match $pattern) {
$configVersion = '${{ matrix.image.ver }}' -replace $pattern,'${version}'
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
run: |
$aspnetVersion = '${{ env.ASPNET_VERSION }}'
# 8.0.0-preview.7.23375.9
$pattern = '^(?<version>\d+\.\d+(\.\d+)?)(-(?<preview>[a-zA-Z.]+[\-\.]?\d+)([\-\.].*)?)?$'
$pattern = '^(?<version>\d+\.\d+(\.\d+)?)(-(?<preview>[a-zA-Z.]+([\-\.]?\d+)?)([\-\.].*)?)?$'
if ($aspnetVersion -match $pattern) {
$newVersionImageTag = $aspnetVersion -replace $pattern,'${version}-${preview}'
$newImageTag = "$newVersionImageTag-${{ matrix.image.arch }}"
Expand Down

0 comments on commit 0c725ca

Please sign in to comment.