-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathpublish-docs.yml
More file actions
43 lines (40 loc) · 971 Bytes
/
publish-docs.yml
File metadata and controls
43 lines (40 loc) · 971 Bytes
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
platform: linux/amd64
labels:
type: exec
pipeline:
- name: build-docs
image: bash
commands:
- make podman-build podman-build-docs
- cp _scripts/* _build/html
- cd _build/html && echo "www.drycc.cc" > CNAME && echo "drycc.cc" >> CNAME && git init
secrets:
- codename
- drycc_registry
when:
event:
- tag
- push
- name: publish-docs
image: bash
commands:
- chown -R root:root _build/html
- podman run --rm
-e DRONE_COMMIT_AUTHOR="$CI_COMMIT_AUTHOR"
-e DRONE_COMMIT_AUTHOR_EMAIL="$CI_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)"
docker.io/appleboy/drone-git-push
secrets:
- ssh_deploy_key
when:
event:
- tag
- push