Commit ab75e3de authored by Nick Gaskill's avatar Nick Gaskill

Merge branch 'trizzi-master-patch-84446' into 'master'

Fix v4 api variable for conan and nuget

See merge request gitlab-org/gitlab!62600
parents d28832fe e162baf5
...@@ -281,7 +281,7 @@ image: conanio/gcc7 ...@@ -281,7 +281,7 @@ image: conanio/gcc7
create_package: create_package:
stage: deploy stage: deploy
script: script:
- ${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/conan - conan remote add gitlab ${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/conan
- conan new <package-name>/0.1 -t - conan new <package-name>/0.1 -t
- conan create . <group-name>+<project-name>/stable - conan create . <group-name>+<project-name>/stable
- CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload <package-name>/0.1@<group-name>+<project-name>/stable --all --remote=gitlab - CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload <package-name>/0.1@<group-name>+<project-name>/stable --all --remote=gitlab
......
...@@ -336,7 +336,7 @@ updated: ...@@ -336,7 +336,7 @@ updated:
stage: deploy stage: deploy
script: script:
- dotnet pack -c Release - dotnet pack -c Release
- dotnet nuget add source "${CI_API_V4_URL}/$CI_PROJECT_ID/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text - dotnet nuget add source "${CI_API_V4_URL}/${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/Release/*.nupkg" --source gitlab - dotnet nuget push "bin/Release/*.nupkg" --source gitlab
only: only:
- master - master
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment