File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ $runtimeIdentifier = 'linux-musl-x64'
1313$configuration = ' Release'
1414$publishReadyToRun = ' True'
1515$publishSingleFile = ' True'
16- $sourcePath = Resolve-Path (Join-Path $PSScriptRoot " ../src/$AppName " )
16+ $repositoryRoot = Resolve-Path (Join-Path $PSScriptRoot ' ..' )
17+ $sourcePath = Join-Path $repositoryRoot " src/$AppName "
1718
1819
1920Exec " dotnet publish --configuration $Configuration
@@ -31,7 +32,7 @@ $dockerFilePath = Join-Path $sourcePath 'Dockerfile'
3132$dockerTagName = $AppName.ToLowerInvariant ().Replace(' .' , ' -' )
3233$dockerRepository = ' tommylohsesw'
3334$dockerImageName = " $dockerRepository /$dockerTagName "
34- $version = nbgv get-version -- variable NuGetPackageVersion
35+ $version = nbgv get-version -- variable NuGetPackageVersion -- project $repositoryRoot
3536
3637Exec " docker build --tag $ ( $dockerImageName ) :latest
3738 --tag $ ( $dockerImageName ) :$version
Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ $ErrorActionPreference = 'Stop'
99. $PSScriptRoot \shared.ps1
1010
1111
12+ $repositoryRoot = Resolve-Path (Join-Path $PSScriptRoot ' ..' )
1213$dockerTagName = $AppName.ToLowerInvariant ().Replace(' .' , ' -' )
1314$dockerRepository = ' tommylohsesw'
14- $version = nbgv get-version -- variable NuGetPackageVersion
15+ $version = nbgv get-version -- variable NuGetPackageVersion -- project $repositoryRoot
1516
1617
1718Exec " docker push $dockerRepository /$ ( $dockerTagName ) :latest"
You can’t perform that action at this time.
0 commit comments