2017-08-07 08:02:38 +02:00
|
|
|
workspace:
|
|
|
|
base: /drone
|
|
|
|
path: src/github.com/vmware/harbor
|
|
|
|
|
2018-03-16 03:48:38 +01:00
|
|
|
clone:
|
|
|
|
git:
|
2017-08-07 08:02:38 +02:00
|
|
|
image: plugins/git
|
|
|
|
tags: true
|
|
|
|
recursive: false
|
|
|
|
|
2018-03-16 03:48:38 +01:00
|
|
|
pipeline:
|
2018-03-03 18:06:03 +01:00
|
|
|
check-org-membership:
|
|
|
|
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.44'
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
BIN: bin
|
|
|
|
GOPATH: /go
|
|
|
|
SHELL: /bin/bash
|
|
|
|
secrets:
|
|
|
|
- github_automation_api_key
|
2018-03-12 07:53:16 +01:00
|
|
|
- skip_check_membership
|
2018-03-03 18:06:03 +01:00
|
|
|
commands:
|
|
|
|
- echo ${DRONE_COMMIT_AUTHOR}
|
2018-03-12 07:53:16 +01:00
|
|
|
- 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
|
2018-03-03 18:06:03 +01:00
|
|
|
when:
|
|
|
|
status: success
|
|
|
|
|
2018-01-12 11:52:54 +01:00
|
|
|
test-and-issue-build:
|
2018-04-16 11:07:21 +02:00
|
|
|
image: vmware/harbor-e2e-engine:1.41
|
2017-08-07 08:02:38 +02:00
|
|
|
pull: true
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
BIN: bin
|
|
|
|
GOPATH: /drone
|
|
|
|
SHELL: /bin/bash
|
2018-03-03 18:06:03 +01:00
|
|
|
TERM: xterm
|
2017-08-07 08:02:38 +02:00
|
|
|
LOG_TEMP_DIR: install-logs
|
2018-03-03 18:06:03 +01:00
|
|
|
secrets:
|
|
|
|
- ci_domain
|
|
|
|
- drone_server
|
|
|
|
- drone_token
|
|
|
|
- drone_token_inte
|
|
|
|
- github_automation_api_key
|
|
|
|
- gs_client_email
|
|
|
|
- gs_private_key
|
|
|
|
- gs_project_id
|
|
|
|
- harbor_admin
|
|
|
|
- harbor_password
|
|
|
|
- mail_pwd
|
|
|
|
- npm_password
|
|
|
|
- npm_username
|
2018-07-09 05:03:51 +02:00
|
|
|
- docker_hub_username
|
|
|
|
- docker_hub_password
|
2017-08-07 08:02:38 +02:00
|
|
|
commands:
|
2018-03-03 18:06:03 +01:00
|
|
|
- export DOMAIN=${CI_DOMAIN}
|
|
|
|
- export HOST_CONTAINER_ID=$(hostname)
|
|
|
|
- echo $HOST_CONTAINER_ID
|
2017-08-07 08:02:38 +02:00
|
|
|
- tests/integration.sh
|
|
|
|
when:
|
|
|
|
status: success
|
|
|
|
|
|
|
|
notify-slack:
|
|
|
|
image: plugins/slack
|
2018-03-03 18:06:03 +01:00
|
|
|
secrets:
|
|
|
|
- source: slack_url
|
|
|
|
target: slack_webhook
|
2017-08-07 08:02:38 +02:00
|
|
|
username: drone
|
|
|
|
template: >
|
2018-03-03 18:06:03 +01:00
|
|
|
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
|
2017-08-07 08:02:38 +02:00
|
|
|
when:
|
|
|
|
repo: vmware/harbor
|
2018-03-03 18:06:03 +01:00
|
|
|
event: [push, tag, deployment]
|
2017-09-04 09:57:49 +02:00
|
|
|
branch: [ master, release-*, refs/tags/* ]
|
|
|
|
status: [ failure, success ]
|
2017-08-07 08:02:38 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
image: plugins/downstream
|
2018-03-03 18:06:03 +01:00
|
|
|
server: https://ci-vic.vmware.com
|
|
|
|
secrets:
|
|
|
|
- downstream_token
|
2017-08-07 08:02:38 +02:00
|
|
|
fork: true
|
|
|
|
repositories:
|
|
|
|
- vmware/vic-product
|
|
|
|
when:
|
|
|
|
repo: vmware/harbor
|
|
|
|
event: [ push, tag ]
|
2017-09-04 09:57:49 +02:00
|
|
|
branch: [ master, release-*, refs/tags/* ]
|
2018-03-03 18:06:03 +01:00
|
|
|
status: success
|