Skip to content

Commit

Permalink
Print out buildpack version when it runs
Browse files Browse the repository at this point in the history
  • Loading branch information
macsux committed Feb 11, 2022
1 parent c85c09f commit 57a817c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sample/KerberosDemo/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ applications:
memory: 512M
health-check-type: none
buildpacks:
- https://github.com/macsux/kerberos-buildpack/releases/download/v1.0.7/KerberosBuildpack-linux-x64-v1.0.7.zip
- https://github.com/macsux/kerberos-buildpack/releases/download/v1.0.9/KerberosBuildpack-linux-x64-v1.0.9.zip
- dotnet_core_buildpack
env:
KRB5_KDC: dc1.macsux.com
KRB_SERVICE_ACCOUNT: [email protected]
KRB_PASSWORD: P@ssw0rd
ConnectionStrings__SqlServer: Server=ad.almirex.com;Database=master;Trusted_Connection=True;TrustServerCertificate=True
ConnectionStrings__SqlServer: Server=dc1.macsux.com;Database=master;Trusted_Connection=True;TrustServerCertificate=True
4 changes: 4 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.255">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/KerberosBuildpack/KerberosBuildpack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class KerberosBuildpack : SupplyBuildpack

protected override void Apply(AbsolutePath buildPath, AbsolutePath cachePath, AbsolutePath depsPath, int index)
{
Console.WriteLine("==== Installing Kerberos Buildpack ==== ");
Console.WriteLine($"==== Installing Kerberos Buildpack v{ThisAssembly.AssemblyFileVersion} ==== ");
var myDependenciesDirectory = depsPath / index.ToString(); // store any runtime dependencies not belonging to the app in this directory
var krb5Dir = buildPath / ".krb5";

Expand Down
3 changes: 3 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0",
"pathFilters": [
":!README.md"
],
"publicReleaseRefSpec": [
"^refs/heads/main$"
],
Expand Down

0 comments on commit 57a817c

Please sign in to comment.