Deploy any package version locally
This commit is contained in:
@@ -29,7 +29,7 @@ build-debug:
|
||||
- mv ./src/AMWD.Common.AspNetCore/bin/Debug/*.nupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.AspNetCore/bin/Debug/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.EntityFrameworkCore/bin/Debug/*.nupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.EntityFrameworkCore/bin/Debug/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.EntityFrameworkCore/bin/Debug/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.MessagePack/bin/Debug/*.nupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.MessagePack/bin/Debug/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.Test/bin/Debug/*.nupkg ./artifacts/
|
||||
@@ -41,7 +41,7 @@ build-debug:
|
||||
expire_in: 7 days
|
||||
|
||||
test-debug:
|
||||
stage: test
|
||||
stage: test
|
||||
dependencies:
|
||||
- build-debug
|
||||
tags:
|
||||
@@ -64,9 +64,22 @@ test-debug:
|
||||
reports:
|
||||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: ./**/coverage.cobertura.xml
|
||||
|
||||
path: ./**/coverage.cobertura.xml
|
||||
|
||||
test-deploy:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-debug
|
||||
- test-debug
|
||||
tags:
|
||||
- docker
|
||||
- lnx
|
||||
- 64bit
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG == null
|
||||
script:
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.home.am-wd.de/v3/index.json artifacts/*.nupkg
|
||||
|
||||
|
||||
build-release:
|
||||
stage: build
|
||||
@@ -85,7 +98,7 @@ build-release:
|
||||
- mv ./src/AMWD.Common.AspNetCore/bin/Release/*.nupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.AspNetCore/bin/Release/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.EntityFrameworkCore/bin/Release/*.nupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.EntityFrameworkCore/bin/Release/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.EntityFrameworkCore/bin/Release/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.MessagePack/bin/Release/*.nupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.MessagePack/bin/Release/*.snupkg ./artifacts/
|
||||
- mv ./src/AMWD.Common.Test/bin/Release/*.nupkg ./artifacts/
|
||||
@@ -97,7 +110,7 @@ build-release:
|
||||
expire_in: 1 days
|
||||
|
||||
test-release:
|
||||
stage: test
|
||||
stage: test
|
||||
dependencies:
|
||||
- build-release
|
||||
tags:
|
||||
@@ -123,7 +136,7 @@ test-release:
|
||||
path: ./**/coverage.cobertura.xml
|
||||
|
||||
deploy-common:
|
||||
stage: deploy
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-release
|
||||
- test-release
|
||||
@@ -137,8 +150,8 @@ deploy-common:
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.[0-9]*.nupkg
|
||||
|
||||
deploy-aspnet:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-release
|
||||
- test-release
|
||||
tags:
|
||||
@@ -151,7 +164,7 @@ deploy-aspnet:
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.AspNetCore.*.nupkg
|
||||
|
||||
deploy-efcore:
|
||||
stage: deploy
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-release
|
||||
- test-release
|
||||
@@ -163,9 +176,9 @@ deploy-efcore:
|
||||
- if: $CI_COMMIT_TAG =~ /^efc\/v[0-9.]+/
|
||||
script:
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.EntityFrameworkCore.*.nupkg
|
||||
|
||||
|
||||
deploy-msgpack:
|
||||
stage: deploy
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-release
|
||||
- test-release
|
||||
@@ -176,10 +189,10 @@ deploy-msgpack:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG =~ /^msgpack\/v[0-9.]+/
|
||||
script:
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.MessagePack.*.nupkg
|
||||
- dotnet nuget push -k $BAGET_APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/AMWD.Common.MessagePack.*.nupkg
|
||||
|
||||
deploy-test:
|
||||
stage: deploy
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build-release
|
||||
- test-release
|
||||
|
||||
Reference in New Issue
Block a user