Skip to content

Commit

Permalink
change gitlab-ci: add proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Jun 14, 2022
1 parent 9bf97dd commit 47ded5b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ packer:
script:
- ls src/
- rm -rf ./src/BlazorComponent
- git clone -b main http://gitlab-hz.lonsid.cn/cicd/BlazorComponent.git ./src/BlazorComponent
- git config --global https.proxy $PROXY_GATEWAY
- git config --global http.proxy $PROXY_GATEWAY
- git clone -b main https://github.com/BlazorComponent/BlazorComponent.git ./src/BlazorComponent
- dotnet build src
- dotnet pack src --include-symbols -p:PackageVersion=0.2.$CI_PIPELINE_ID
- dotnet nuget push "**/*.symbols.nupkg" -k $nugetkey -s https://api.nuget.org/v3/index.json
- git config --global --unset https.proxy
- git config --global --unset http.proxy
artifacts:
expire_in: 1 day
paths:
Expand Down Expand Up @@ -75,10 +79,14 @@ packer-prd:
- tags
script:
- rm -rf ./src/BlazorComponent
- git clone -b main http://gitlab-hz.lonsid.cn/cicd/BlazorComponent.git ./src/BlazorComponent
- git config --global https.proxy $PROXY_GATEWAY
- git config --global http.proxy $PROXY_GATEWAY
- git clone -b main https://github.com/BlazorComponent/BlazorComponent.git ./src/BlazorComponent
- dotnet build src
- dotnet pack src --include-symbols -p:PackageVersion=$CI_COMMIT_TAG
- dotnet nuget push "**/*.symbols.nupkg" -k $nugetkey -s https://api.nuget.org/v3/index.json
- git config --global --unset https.proxy
- git config --global --unset http.proxy
artifacts:
expire_in: 1 day
paths:
Expand Down

0 comments on commit 47ded5b

Please sign in to comment.