1
0
Fork 0

ci: add repository url param for semantic-release

This commit is contained in:
Vojtěch Mareš 2021-12-09 10:28:12 +01:00
parent 5825c73112
commit 310a068979
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -30,7 +30,7 @@ release:tag--dry-run:
- |
echo "!!! THIS IS A DRY RUN !!!"
echo "NO RELEASE WILL BE CREATED"
- semantic-release --dry-run -b ${CI_COMMIT_REF_NAME}
- semantic-release --dry-run -b ${CI_COMMIT_REF_NAME} --repository-url ${CI_REPOSITORY_URL}
rules:
- if: $CI_COMMIT_TAG
when: never
@ -46,7 +46,7 @@ release:tag:
- apt-get update && apt-get upgrade -y --no-install-recommends git-core ca-certificates
- npm i -g semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/gitlab
script:
- semantic-release -b ${CI_COMMIT_REF_NAME}
- semantic-release -b ${CI_COMMIT_REF_NAME} --repository-url ${CI_REPOSITORY_URL}
rules:
- if: $CI_COMMIT_TAG
when: never