From ae744988a2736fa0eadaf2d6481fbd093839d51c Mon Sep 17 00:00:00 2001 From: "r.v.bobreshov" Date: Tue, 14 May 2019 15:11:13 +0300 Subject: [PATCH] delete old build files --- Dockerfile | 27 --------------------------- build.sh | 21 --------------------- 2 files changed, 48 deletions(-) delete mode 100644 Dockerfile delete mode 100644 build.sh diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 028f42e..0000000 --- a/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env -ARG VERSION -ARG NUGET_APIKEY - -WORKDIR /sln - -COPY Horarium/Horarium.sln ./ -COPY Horarium/**/*.csproj ./ - -RUN for f in *.csproj; do \ - filename=$(basename $f) && \ - dirname=${filename%.*} && \ - mkdir $dirname && \ - mv $filename ./$dirname/; \ - done - -RUN dotnet restore Horarium.sln - -COPY Horarium ./ - -RUN dotnet build Horarium.sln -c Release - -RUN dotnet test Horarium.Test/Horarium.Test.csproj --no-restore - -RUN dotnet test teamcity Horarium.IntegrationTest/Horarium.IntegrationTest.csproj --no-restore - -RUN dotnet pack Horarium/Horarium.csproj -c Release --no-build /p:PackageVersion=$VERSION diff --git a/build.sh b/build.sh deleted file mode 100644 index 9a8a8b5..0000000 --- a/build.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -branch=$1 -buildCounter=$2 -majorAlfaPackage=$3 -nugetApiKey=$4 -if [[ -z $MajorAlfaPackage ]]; then - MajorAlfaPackage="1.0" -fi - -if [[ $branch = "V"* ]]; then - [[ $branch =~ ^V[[:digit:]]+[.][[:digit:]]+$ ]] && branch="$branch".0 - version=${branch/V/}.$buildCounter -else - version=$majorAlfaPackage.0.$buildCounter-$branch -fi - -echo "##teamcity[buildNumber '$version']" - -docker build . --build-arg VERSION=$version --build-arg NUGET_APIKEY=$nugetApiKey && \ -docker build -f ./SonarQube.Dockerfile .