-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
37 lines (35 loc) · 1006 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
pipeline:
publish-image-to-quay:
group: publish
image: plugins/docker
mirror: https://mirror.gcr.io
registry: quay.io
repo: quay.io/presslabs/orchestrator
auto_tag: false
username: presslabs+drone
secrets:
- source: QUAY_TOKEN
target: DOCKER_PASSWORD
build_args:
- ORCHESTRATOR_VERSION=${ORCHESTRATOR_VERSION}
tags: [ "${DRONE_BRANCH/master/latest}", "${ORCHESTRATOR_VERSION}-r${DRONE_BUILD_NUMBER}" ]
when:
event: push
publish-helm-chart:
group: publish
image: quay.io/presslabs/kluster-toolbox
pull: true
environment:
- GH_USER=presslabs-bot
commands:
- helm package charts/orchestrator
- CHART="$(basename *.tgz)" ; MESSAGE="Publish $(basename $CHART .tgz)"
- /usr/local/bin/gh put --skip-existing -m "$MESSAGE" "$CHART" "presslabs/charts/docs/"
secrets:
- GH_PASSWORD
when:
branch: master
event: push
matrix:
include:
- ORCHESTRATOR_VERSION: v3.0.14