diff --git a/scripts/pipelines/azure-devops/templates/package/dotnet-package.sh b/scripts/pipelines/azure-devops/templates/package/dotnet-package.sh new file mode 100644 index 000000000..8d85276e4 --- /dev/null +++ b/scripts/pipelines/azure-devops/templates/package/dotnet-package.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# We define the tag using the version set in one of the modules (since there is no version given in a template!) +tag=$(xmllint --xpath "string(//Project/PropertyGroup/Version/text())" "${imageTagFilePath}") \ No newline at end of file diff --git a/scripts/pipelines/azure-devops/templates/package/package-pipeline.cfg b/scripts/pipelines/azure-devops/templates/package/package-pipeline.cfg index 56f692c33..760e1c9e7 100644 --- a/scripts/pipelines/azure-devops/templates/package/package-pipeline.cfg +++ b/scripts/pipelines/azure-devops/templates/package/package-pipeline.cfg @@ -19,7 +19,7 @@ packageLanguageScript="package-extra.sh" # Source branch. sourceBranch="feature/package-pipeline" #Dockerfile Paths depending on the language -dockerfilePaths="quarkus-jvm:src/main/docker/Dockerfile.jvm quarkus:src/main/docker/Dockerfile.native node:Dockerfile angular:Dockerfile" +dockerfilePaths="quarkus-jvm:src/main/docker/Dockerfile.jvm quarkus:src/main/docker/Dockerfile.native node:Dockerfile angular:Dockerfile dotnet:source/Templates/WebAPI/Devon4Net.Application.WebAPI/Dockerfile" dockerImageTagFilePaths="quarkus-jvm:pom.xml quarkus:pom.xml node:package.json angular:package.json" function copyScript {