build: moving NuGet server hard-code to variables
This commit is contained in:
parent
b364f299c6
commit
78109d3890
1 changed files with 1 additions and 2 deletions
|
@ -73,8 +73,7 @@ deploy:
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
- dotnet build
|
- dotnet build
|
||||||
- dotnet pack -c Release
|
- dotnet pack -c Release
|
||||||
- dotnet nuget add source "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
|
- dotnet nuget push "bin/*.nupkg" $NUGET_TOKEN -Source "$NUGET_PUSH_URL"
|
||||||
- dotnet nuget push "bin/*.nupkg" --source gitlab
|
|
||||||
rules:
|
rules:
|
||||||
- if: '$FORCE_DEPLOY'
|
- if: '$FORCE_DEPLOY'
|
||||||
- if: '$CI_COMMIT_TITLE =~ /^chore\(release\)/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
- if: '$CI_COMMIT_TITLE =~ /^chore\(release\)/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
|
Reference in a new issue