This commit is contained in:
peter
2019-09-22 15:03:00 +02:00
parent 0980367d04
commit 9625ebc179
+6 -5
View File
@@ -65,13 +65,14 @@ steps:
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
- git config --global user.name "${DRONE_COMMIT_AUTHOR}" - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
- echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git - echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
- cd ${DRONE_REPO_NAME}
- git reset HEAD --hard - git reset HEAD --hard
- echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./${DRONE_REPO_NAME}/* - echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./*
- echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ./docs/* ./${DRONE_REPO_NAME} - echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ../docs/* .
- ls ./${DRONE_REPO_NAME} - ls
- echo "add files in ${DRONE_REPO_NAME}"; git add ${DRONE_REPO_NAME}/* - echo "add files in ${DRONE_REPO_NAME}"; git add -A
- git commit -m "Drone tagged as ${DRONE_TAG}" - git commit -m "Drone tagged as ${DRONE_TAG}"
- git push --force https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master - git push --force origin master
environment: environment:
GIT_USER: GIT_USER:
from_secret: git_user from_secret: git_user