-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathdrone.yml
More file actions
53 lines (49 loc) · 1.62 KB
/
Copy pathdrone.yml
File metadata and controls
53 lines (49 loc) · 1.62 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
kind: pipeline
type: exec
name: default
steps:
- name: build-docs
commands:
- make docker-build docker-build-docs
- cp _scripts/* _build/html
- cd _build/html && echo "drycc.cc" > CNAME && echo "www.drycc.cc" >> CNAME && git init
environment:
SSH_DEPLOY_KEY:
from_secret: ssh_deploy_key
- name: publish-docs
commands:
- chown -R root:root _build/html
- docker run --rm
-e DRONE_COMMIT_AUTHOR="$DRONE_COMMIT_AUTHOR"
-e DRONE_COMMIT_AUTHOR_EMAIL="$DRONE_COMMIT_AUTHOR_EMAIL"
-e PLUGIN_SSH_KEY="$SSH_DEPLOY_KEY"
-e PLUGIN_BRANCH=main
-e PLUGIN_REMOTE=git@github.com:drycc/www.drycc.cc.git
-e PLUGIN_FORCE=true
-e PLUGIN_COMMIT=true
-e PLUGIN_PATH=_build/html
-e PLUGIN_COMMIT_MESSAGE="init repo"
-v "$(pwd):$(pwd)"
-w "$(pwd)"
appleboy/drone-git-push
environment:
SSH_DEPLOY_KEY:
from_secret: ssh_deploy_key
- name: publish-charts
commands:
- pip install -r requirements.txt
- python3 _scripts/dependency_update.py "$CHARTMUSEUM_API/$([ -z $DRONE_TAG ] && echo testing || echo stable)" "charts/workflow/Chart.yaml"
- helm package charts/workflow -u --version ${DRONE_TAG:-v1.0.0}
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@workflow-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
- bash _scripts/generate_cache.sh
environment:
CHARTMUSEUM_API:
from_secret: chartmuseum_api
CHARTMUSEUM_USERNAME:
from_secret: chartmuseum_username
CHARTMUSEUM_PASSWORD:
from_secret: chartmuseum_password
trigger:
event:
- push
- tag