Skip to content

Commit

Permalink
Set SemVer and MajorMinorPatch environment variables in container #30
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZiminSaritasa committed Nov 10, 2017
1 parent ae04ace commit 2336151
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions samples/Saritasa.BoringWarehouse/Docker/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ COPY default.ps1 C:\Temp\default.ps1

COPY BoringWarehouse.zip C:\Temp\BoringWarehouse.zip

ENV SemVer=0.0.0 `
MajorMinorPatch=0.0.0

WORKDIR C:\Temp
RUN ["psake.bat", "publish-boringwarehouse", "-properties", "@{ServerHost='localhost';SiteName='Default Web Site'}"]

Expand Down
3 changes: 3 additions & 0 deletions samples/ZergRushCo.Todosya/Docker/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ COPY default.ps1 C:\Temp\default.ps1

COPY ZergRushCo.zip Temp\ZergRushCo.zip

ENV SemVer=0.0.0 `
MajorMinorPatch=0.0.0

WORKDIR C:\Temp
RUN ["psake.bat", "publish-zergrushco", "-properties", "@{ServerHost='localhost';SiteName='Default Web Site'}"]

Expand Down
7 changes: 6 additions & 1 deletion scripts/BuildTasks.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Properties `
{
$Configuration = $null
$SemVer = $null
$MajorMinorPatch = $null
}

$root = $PSScriptRoot
Expand All @@ -18,7 +20,10 @@ Task pre-build `

# Use following command to revert the files:
# git checkout -- **/AssemblyInfo.cs
Exec { GitVersion.exe /updateassemblyinfo }
if ($MajorMinorPatch -ne '0.0.0')
{
Exec { GitVersion.exe /updateassemblyinfo }
}
}

Task build-samples -depends build-zergrushco, build-boringwarehouse
Expand Down

0 comments on commit 2336151

Please sign in to comment.