mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 18:55:18 +01:00
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
# Harbor drone.
|
|
---
|
|
workspace:
|
|
base: /drone
|
|
path: src/github.com/vmware/harbor
|
|
|
|
pipeline:
|
|
clone:
|
|
image: plugins/git
|
|
tags: true
|
|
recursive: false
|
|
|
|
test-and-issue-build:
|
|
image: vmware/harbor-e2e-engine:1.38
|
|
pull: true
|
|
privileged: true
|
|
environment:
|
|
BIN: bin
|
|
GOPATH: /drone
|
|
SHELL: /bin/bash
|
|
LOG_TEMP_DIR: install-logs
|
|
GITHUB_AUTOMATION_API_KEY: ${GITHUB_AUTOMATION_API_KEY}
|
|
DRONE_SERVER: ${DRONE_SERVER}
|
|
DRONE_TOKEN: ${DRONE_TOKEN_INTE}
|
|
HARBOR_ADMIN: ${HARBOR_ADMIN}
|
|
HARBOR_PASSWORD: ${HARBOR_PASSWORD}
|
|
GS_PROJECT_ID: ${GS_PROJECT_ID}
|
|
GS_CLIENT_EMAIL: ${GS_CLIENT_EMAIL}
|
|
GS_PRIVATE_KEY: ${GS_PRIVATE_KEY}
|
|
DOMAIN: ${CI_DOMAIN}
|
|
MAIL_PWD: ${MAIL_PWD}
|
|
NPM_USERNAME: ${NPM_USERNAME}
|
|
NPM_PASSWORD: ${NPM_PASSWORD}
|
|
commands:
|
|
- tests/integration.sh
|
|
when:
|
|
status: success
|
|
|
|
notify-slack:
|
|
image: plugins/slack
|
|
webhook: ${SLACK_URL}
|
|
username: drone
|
|
template: >
|
|
build https://ci.vcna.io/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
|
|
when:
|
|
repo: vmware/harbor
|
|
branch: [ master, release-*, refs/tags/* ]
|
|
status: [ failure, success ]
|
|
|
|
trigger:
|
|
image: plugins/downstream
|
|
server: https://ci.vcna.io
|
|
token: ${DOWNSTREAM_TOKEN}
|
|
fork: true
|
|
repositories:
|
|
- vmware/vic-product
|
|
when:
|
|
repo: vmware/harbor
|
|
event: [ push, tag ]
|
|
branch: [ master, release-*, refs/tags/* ]
|
|
status: success
|