-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathdrone.yml
More file actions
65 lines (61 loc) · 1.66 KB
/
drone.yml
File metadata and controls
65 lines (61 loc) · 1.66 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
54
55
56
57
58
59
60
61
62
63
64
65
kind: pipeline
type: docker
name: default
steps:
- name: build-docs
image: docker.io/drycc/go-dev
privileged: true
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
when:
event:
- push
- tag
volumes:
- name: image_registries
path: /etc/containers/registries.conf
- name: publish-docs
image: docker.io/appleboy/drone-git-push
pull: always
settings:
branch: main
remote: git@github.com:drycc/www.drycc.cc.git
path: _build/html
force: true
commit: true
commit_message: init repo
ssh_key:
from_secret: ssh_deploy_key
when:
event:
- push
- tag
- name: publish-charts
image: docker.io/drycc/python-dev
privileged: true
commands:
- pip install -r requirements.txt
- python _scripts/dependency_update.py "$CHARTMUSEUM_API/$([ -z $DRONE_TAG ] && echo testing || echo stable)" "charts/workflow/requirements.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
when:
event:
- push
- tag
volumes:
- name: image_registries
host:
path: /etc/containers/registries.conf