drone
This commit is contained in:
+8
-28
@@ -3,27 +3,6 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: versioning
|
|
||||||
image: node:12
|
|
||||||
commands:
|
|
||||||
- echo $DRONE_BUILD_CREATED
|
|
||||||
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
|
||||||
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
|
||||||
- git add -f docs
|
|
||||||
- git commit -m "Drone tagged as ${DRONE_TAG}"
|
|
||||||
- git tag "${DRONE_TAG}"
|
|
||||||
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
|
|
||||||
|
|
||||||
environment:
|
|
||||||
GIT_USER:
|
|
||||||
from_secret: git_user
|
|
||||||
GIT_PASSWORD:
|
|
||||||
from_secret: git_password
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: restore cache
|
- name: restore cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
settings:
|
settings:
|
||||||
@@ -79,16 +58,17 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
- name: commit documentation
|
- name: deploy documentation
|
||||||
image: node:12
|
image: node:12
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "frontwork.me@gmail.com"
|
- echo $DRONE_BUILD_CREATED
|
||||||
- git config --global user.name "drone"
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
||||||
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
||||||
- git add -f docs
|
- git add -f docs
|
||||||
- git commit --allow-empty -m "documented version at ${DRONE_BUILD_CREATED}"
|
- git commit -m "Drone tagged as ${DRONE_TAG}"
|
||||||
- git tag ${DRONE_BUILD_CREATED}
|
- git tag "${DRONE_TAG}"
|
||||||
- git status
|
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
|
||||||
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master ${DRONE_BUILD_CREATED}
|
|
||||||
environment:
|
environment:
|
||||||
GIT_USER:
|
GIT_USER:
|
||||||
from_secret: git_user
|
from_secret: git_user
|
||||||
|
|||||||
Reference in New Issue
Block a user