update gitlab CI
This commit is contained in:
parent
0123a6b021
commit
6b3ba8bf80
@ -6,20 +6,19 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
REGISTRY_URL: "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/"
|
REGISTRY_URL: "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/"
|
||||||
REGISTRY_URL1: "https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/"
|
|
||||||
|
|
||||||
delete_registry:
|
delete_registry:
|
||||||
stage: delete_registry
|
stage: delete_registry
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
curl --request DELETE --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" "${REGISTRY_URL1}"
|
curl --request DELETE --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" "https:${REGISTRY_URL}"
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- echo "@scope:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc
|
- echo "@scope:registry=https:${REGISTRY_URL}" > .npmrc
|
||||||
- echo "${REGISTRY_URL}:_authToken=${CI_JOB_TOKEN}" >> .npmrc
|
- echo "${REGISTRY_URL}:_authToken=${CI_JOB_TOKEN}" >> .npmrc
|
||||||
- npm publish
|
- npm publish
|
||||||
only:
|
only:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user