mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Add ability to skip check membership on CI (#4386)
This commit is contained in:
parent
7ec809b31e
commit
11254a024d
@ -17,9 +17,11 @@ pipeline:
|
|||||||
SHELL: /bin/bash
|
SHELL: /bin/bash
|
||||||
secrets:
|
secrets:
|
||||||
- github_automation_api_key
|
- github_automation_api_key
|
||||||
|
- skip_check_membership
|
||||||
commands:
|
commands:
|
||||||
- echo ${DRONE_COMMIT_AUTHOR}
|
- echo ${DRONE_COMMIT_AUTHOR}
|
||||||
- /bin/bash -c '[[ ! $(curl --silent "https://api.github.com/orgs/vmware/members/${DRONE_COMMIT_AUTHOR}?access_token=$GITHUB_AUTOMATION_API_KEY") ]]'
|
- echo $SKIP_CHECK_MEMBERSHIP
|
||||||
|
- if $SKIP_CHECK_MEMBERSHIP == true; then echo 'check-org-membership step skipped'; else /bin/bash -c '[[ ! $(curl --silent "https://api.github.com/orgs/vmware/members/${DRONE_COMMIT_AUTHOR}?access_token=$GITHUB_AUTOMATION_API_KEY") ]]'; fi
|
||||||
when:
|
when:
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@ Pull requests (PR) are always welcome, even they are small fixes like typos or a
|
|||||||
|
|
||||||
Please submit a PR to contain changes bit by bit. A PR consisting of a lot features and code changes may be hard to review. It is recommended to submit PRs in a incremental fasion.
|
Please submit a PR to contain changes bit by bit. A PR consisting of a lot features and code changes may be hard to review. It is recommended to submit PRs in a incremental fasion.
|
||||||
|
|
||||||
|
If you are not a member of `vmware` org in github, then your PR Drone CI build may fail. In that case, request one of the existing members / reviewers to fork your failed build to skip membership checking.
|
||||||
|
```shell
|
||||||
|
drone build start --param SKIP_CHECK_MEMBERSHIP=true vmware/harbor <Build Number>
|
||||||
|
```
|
||||||
|
|
||||||
### Design new features
|
### Design new features
|
||||||
|
|
||||||
You can propose new designs for existing Harbor features. You can also design
|
You can propose new designs for existing Harbor features. You can also design
|
||||||
|
Loading…
Reference in New Issue
Block a user