Fixing CI build
This commit is contained in:
@@ -12,7 +12,7 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
|
||||||
build-branch:
|
branch build:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@@ -37,7 +37,7 @@ build-branch:
|
|||||||
- artifacts/*.snupkg
|
- artifacts/*.snupkg
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
|
|
||||||
test-branch:
|
branch test:
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@@ -50,16 +50,17 @@ test-branch:
|
|||||||
- dotnet test -c Debug --nologo --no-restore
|
- dotnet test -c Debug --nologo --no-restore
|
||||||
|
|
||||||
|
|
||||||
build-main:
|
main build common:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common/*
|
changes:
|
||||||
|
- AMWD.Common/**
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet build -c Release --nologo --no-restore --no-incremental
|
- dotnet build -c Release --nologo --no-restore --no-incremental
|
||||||
@@ -72,16 +73,17 @@ build-main:
|
|||||||
- artifacts/*.snupkg
|
- artifacts/*.snupkg
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
build-main-asp:
|
main build aspnet:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common.AspNetCore/*
|
changes:
|
||||||
|
- AMWD.Common.AspNetCore/**
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet build -c Release --nologo --no-restore --no-incremental
|
- dotnet build -c Release --nologo --no-restore --no-incremental
|
||||||
@@ -94,16 +96,17 @@ build-main-asp:
|
|||||||
- artifacts/*.snupkg
|
- artifacts/*.snupkg
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
build-main-efc:
|
main build entityframework:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common.EntityFrameworkCore/*
|
changes:
|
||||||
|
- AMWD.Common.EntityFrameworkCore/**
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet build -c Release --nologo --no-restore --no-incremental
|
- dotnet build -c Release --nologo --no-restore --no-incremental
|
||||||
@@ -116,16 +119,17 @@ build-main-efc:
|
|||||||
- artifacts/*.snupkg
|
- artifacts/*.snupkg
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
build-main-test:
|
main build test:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common.Test/*
|
changes:
|
||||||
|
- AMWD.Common.AspNetCore/**
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet build -c Release --nologo --no-restore --no-incremental
|
- dotnet build -c Release --nologo --no-restore --no-incremental
|
||||||
@@ -138,79 +142,84 @@ build-main-test:
|
|||||||
- artifacts/*.snupkg
|
- artifacts/*.snupkg
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
test-main:
|
main test all:
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
|
- tags
|
||||||
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
coverage: '/Total[^|]*\|[^|]*\|\s*([0-9.%]+)/'
|
||||||
script:
|
script:
|
||||||
- dotnet restore --no-cache --force
|
- dotnet restore --no-cache --force
|
||||||
- dotnet test -c Release --nologo --no-restore
|
- dotnet test -c Release --nologo --no-restore
|
||||||
|
|
||||||
deploy-main:
|
deploy common:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- test-main
|
- main test all
|
||||||
- build-main
|
- main build common
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common/*
|
changes:
|
||||||
|
- AMWD.Common/**
|
||||||
script:
|
script:
|
||||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.*.nupkg
|
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.*.nupkg
|
||||||
|
|
||||||
deploy-main-asp:
|
deploy aspnet:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- test-main
|
- main test all
|
||||||
- build-main-asp
|
- main build aspnet
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common.AspNetCore/*
|
changes:
|
||||||
|
- AMWD.Common.AspNetCore/**
|
||||||
script:
|
script:
|
||||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.AspNetCore.*.nupkg
|
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.AspNetCore.*.nupkg
|
||||||
|
|
||||||
deploy-main-efc:
|
deploy entityframework:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- test-main
|
- main test all
|
||||||
- build-main-efc
|
- main build entityframework
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common.EntityFrameworkCore/*
|
changes:
|
||||||
|
- AMWD.Common.EntityFrameworkCore/**
|
||||||
script:
|
script:
|
||||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.EntityFrameworkCore.*.nupkg
|
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.EntityFrameworkCore.*.nupkg
|
||||||
|
|
||||||
deploy-main-test:
|
deploy-main-test:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- test-main
|
- main test all
|
||||||
- build-main-test
|
- main build test
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lnx
|
- lnx
|
||||||
- amd64
|
- amd64
|
||||||
only:
|
only:
|
||||||
- tags
|
refs:
|
||||||
- changes:
|
- tags
|
||||||
- AMWD.Common.Test/*
|
changes:
|
||||||
|
- AMWD.Common.Test/**
|
||||||
script:
|
script:
|
||||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.Test.*.nupkg
|
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.Test.*.nupkg
|
||||||
|
|||||||
Reference in New Issue
Block a user