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
- hugo
- name: hugo_publish
image: alpine:3.12.3
when:
branch:
- main
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
#image: alpine:3.12.3
image: appleboy/drone-git-push
settings:
remote_name: origin
branch: master
local_ref: master
path: brainsteam/public
commit: true
commit_message: update build from hugo
author_name: DroneCI
# when:
# branch:
# - main
# 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
# Generated files by hugo
/public/
/brainsteam/public
#/brainsteam/public
/brainstorm/resources/_gen/
# Executable may be added to repository