mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 09:08:26 +01:00
Merge pull request #5563 from zjs/topic/fix-drone
Fix continuous integration pipeline following move to goharbor org
This commit is contained in:
commit
0123dfbe45
@ -22,7 +22,7 @@ pipeline:
|
|||||||
commands:
|
commands:
|
||||||
- echo ${DRONE_COMMIT_AUTHOR}
|
- echo ${DRONE_COMMIT_AUTHOR}
|
||||||
- echo $SKIP_CHECK_MEMBERSHIP
|
- 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
|
- 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
|
||||||
|
|
||||||
@ -67,9 +67,9 @@ pipeline:
|
|||||||
target: slack_webhook
|
target: slack_webhook
|
||||||
username: drone
|
username: drone
|
||||||
template: >
|
template: >
|
||||||
build https://ci-vic.vmware.com/vmware/harbor/{{ build.number }} finished with a {{ build.status }} status. Please find logs at https://storage.googleapis.com/harbor-ci-logs/integration_logs_{{ build.number }}_{{ build.commit }}.tar.gz
|
build https://ci-vic.vmware.com/goharbor/harbor/{{ build.number }} finished with a {{ build.status }} status. Please find logs at https://storage.googleapis.com/harbor-ci-logs/integration_logs_{{ build.number }}_{{ build.commit }}.tar.gz
|
||||||
when:
|
when:
|
||||||
repo: vmware/harbor
|
repo: goharbor/harbor
|
||||||
event: [push, tag, deployment]
|
event: [push, tag, deployment]
|
||||||
branch: [ master, release-*, refs/tags/* ]
|
branch: [ master, release-*, refs/tags/* ]
|
||||||
status: [ failure, success ]
|
status: [ failure, success ]
|
||||||
@ -83,7 +83,7 @@ pipeline:
|
|||||||
repositories:
|
repositories:
|
||||||
- vmware/vic-product
|
- vmware/vic-product
|
||||||
when:
|
when:
|
||||||
repo: vmware/harbor
|
repo: goharbor/harbor
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
branch: [ master, release-*, refs/tags/* ]
|
branch: [ master, release-*, refs/tags/* ]
|
||||||
status: success
|
status: success
|
@ -18,7 +18,7 @@ gsutil version -l
|
|||||||
set +x
|
set +x
|
||||||
|
|
||||||
## -------------------------------------------- Pre-condition --------------------------------------------
|
## -------------------------------------------- Pre-condition --------------------------------------------
|
||||||
if [[ $DRONE_REPO != "vmware/harbor" ]]; then
|
if [[ $DRONE_REPO != "goharbor/harbor" ]]; then
|
||||||
echo "Only run tests again Harbor Repo."
|
echo "Only run tests again Harbor Repo."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user