From 67771b71d23c51cdbabfabf6f82ba7351b28f045 Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 29 Apr 2024 16:00:06 +0100 Subject: [PATCH] Refactor container properties Move some properties into `Directory.Build.props` for re-use and less clutter for things that aren't project-specific. --- Directory.Build.props | 13 +++++++++++++ .../LondonTravel.Site.csproj | 19 ++----------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 2e1723aae..4719af35e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -21,6 +21,7 @@ true true true + true true false true @@ -54,4 +55,16 @@ + + github-$(GITHUB_RUN_NUMBER) + $(ContainerImageTags);latest + $(GITHUB_REPOSITORY) + $(GITHUB_REPOSITORY) + $(GITHUB_REPOSITORY_OWNER) + $(GITHUB_SHA) + + + + + diff --git a/src/LondonTravel.Site/LondonTravel.Site.csproj b/src/LondonTravel.Site/LondonTravel.Site.csproj index af7b7c44e..73cf33628 100644 --- a/src/LondonTravel.Site/LondonTravel.Site.csproj +++ b/src/LondonTravel.Site/LondonTravel.Site.csproj @@ -7,6 +7,7 @@ $(NoWarn);CA1716 Exe true + true MartinCostello.LondonTravel.Site en;en-GB;en-US;qps-Ploc Website for the London Travel Amazon Alexa skill. @@ -20,24 +21,7 @@ mcr.microsoft.com/dotnet/nightly/runtime-deps:8.0-noble-chiseled-extra noble-chiseled-extra - true - true - - github-$(GITHUB_RUN_NUMBER) - $(ContainerImageTags);latest - $(GITHUB_REPOSITORY) - $(GITHUB_REPOSITORY) - $(GITHUB_REPOSITORY_OWNER) - $(GITHUB_SHA) - - - - - - - - @@ -67,6 +51,7 @@ +