|
@@ -3,27 +3,6 @@ name: default
|
3
|
3
|
|
4
|
4
|
steps:
|
5
|
5
|
|
6
|
|
-- name: versioning
|
7
|
|
- image: node:12
|
8
|
|
- commands:
|
9
|
|
- - echo $DRONE_BUILD_CREATED
|
10
|
|
- - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
11
|
|
- - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
12
|
|
- - git add -f docs
|
13
|
|
- - git commit -m "Drone tagged as ${DRONE_TAG}"
|
14
|
|
- - git tag "${DRONE_TAG}"
|
15
|
|
- - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
|
16
|
|
-
|
17
|
|
- environment:
|
18
|
|
- GIT_USER:
|
19
|
|
- from_secret: git_user
|
20
|
|
- GIT_PASSWORD:
|
21
|
|
- from_secret: git_password
|
22
|
|
- trigger:
|
23
|
|
- event:
|
24
|
|
- exclude:
|
25
|
|
- - tag
|
26
|
|
-
|
27
|
6
|
- name: restore cache
|
28
|
7
|
image: drillster/drone-volume-cache
|
29
|
8
|
settings:
|
|
@@ -79,16 +58,17 @@ steps:
|
79
|
58
|
event:
|
80
|
59
|
- tag
|
81
|
60
|
|
82
|
|
-- name: commit documentation
|
|
61
|
+- name: deploy documentation
|
83
|
62
|
image: node:12
|
84
|
63
|
commands:
|
85
|
|
- - git config --global user.email "frontwork.me@gmail.com"
|
86
|
|
- - git config --global user.name "drone"
|
|
64
|
+ - echo $DRONE_BUILD_CREATED
|
|
65
|
+ - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
|
66
|
+ - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
87
|
67
|
- git add -f docs
|
88
|
|
- - git commit --allow-empty -m "documented version at ${DRONE_BUILD_CREATED}"
|
89
|
|
- - git tag ${DRONE_BUILD_CREATED}
|
90
|
|
- - git status
|
91
|
|
- - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master ${DRONE_BUILD_CREATED}
|
|
68
|
+ - git commit -m "Drone tagged as ${DRONE_TAG}"
|
|
69
|
+ - git tag "${DRONE_TAG}"
|
|
70
|
+ - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
|
|
71
|
+
|
92
|
72
|
environment:
|
93
|
73
|
GIT_USER:
|
94
|
74
|
from_secret: git_user
|
|
@@ -96,8 +76,8 @@ steps:
|
96
|
76
|
from_secret: git_password
|
97
|
77
|
trigger:
|
98
|
78
|
event:
|
99
|
|
- - tag
|
100
|
|
-
|
|
79
|
+ - tag
|
|
80
|
+
|
101
|
81
|
volumes:
|
102
|
82
|
- name: cache
|
103
|
83
|
host:
|