upate drone
continuous-integration/drone/push Build is failing Details

This commit is contained in:
James Ravenscroft 2021-12-21 14:30:28 +00:00
parent 19e916749c
commit 070a3e41c3
1 changed files with 34 additions and 27 deletions

View File

@ -12,32 +12,39 @@ steps:
- git submodule update - git submodule update
- cd brainsteam - cd brainsteam
- hugo - hugo
- cd ../ # - cd ../
- git fetch origin public && git checkout public # - git fetch origin public && git checkout public
- cp -r brainsteam/public new_files # - cp -r brainsteam/public new_files
- rm -rf brainsteam/ # - rm -rf brainsteam/
- cp -Tr new_files/ ./ # - cp -Tr new_files/ ./
- rm -rf new_files/ # - rm -rf new_files/
- name: hugo_publish - name: hugo_publish
#image: alpine:3.12.3 image: alpine:3.12.3
image: appleboy/drone-git-push image: appleboy/drone-git-push
settings: # settings:
remote_name: origin # remote_name: origin
branch: public # branch: public
local_ref: public # local_ref: public
commit: true # commit: true
commit_message: update build from hugo # commit_message: update build from hugo
author_name: DroneCI # author_name: DroneCI
# when: when:
# branch: branch:
# - main - main
# environment: environment:
# FTP_USERNAME: INPUT_HASHFILE: hashes.sha256
# from_secret: FTP_USERNAME INPUT_HASHTYPE: sha256
# FTP_PASSWORD: INPUT_PROTOCOL: ftp
# from_secret: FTP_PASSWORD INPUT_HOST: sv7.byethost7.org
# FTP_HOSTNAME: sv7.byethost7.org INPUT_DESTINATION: /public_html/brainsteam.co.uk
# commands: INPUT_SOURCE: brainsteam/public
# - apk add lftp INPUT_USERNAME:
# - cd brainsteam from_secret: FTP_USERNAME
# - lftp -e "mirror -R ./public /" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOSTNAME INPUT_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
- ./sync.sh