update ci stuff
continuous-integration/drone/push Build is passing Details

This commit is contained in:
James Ravenscroft 2021-12-21 12:21:34 +00:00
parent d6e250a09b
commit 20aa1b5a62
2 changed files with 24 additions and 15 deletions

View File

@ -13,17 +13,26 @@ steps:
- cd brainsteam - cd brainsteam
- hugo - hugo
- name: hugo_publish - name: hugo_publish
image: alpine:3.12.3 #image: alpine:3.12.3
when: image: appleboy/drone-git-push
branch: settings:
- main remote_name: origin
environment: branch: master
FTP_USERNAME: local_ref: master
from_secret: FTP_USERNAME path: brainsteam/public
FTP_PASSWORD: commit: true
from_secret: FTP_PASSWORD commit_message: update build from hugo
FTP_HOSTNAME: sv7.byethost7.org author_name: DroneCI
commands: # when:
- apk add lftp # branch:
- cd brainsteam # - main
- lftp -e "mirror -R ./public /" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOSTNAME # environment:
# FTP_USERNAME:
# from_secret: FTP_USERNAME
# FTP_PASSWORD:
# from_secret: FTP_PASSWORD
# FTP_HOSTNAME: sv7.byethost7.org
# commands:
# - apk add lftp
# - cd brainsteam
# - lftp -e "mirror -R ./public /" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOSTNAME

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
# ---> Hugo # ---> Hugo
# Generated files by hugo # Generated files by hugo
/public/ /public/
/brainsteam/public #/brainsteam/public
/brainstorm/resources/_gen/ /brainstorm/resources/_gen/
# Executable may be added to repository # Executable may be added to repository