update build - do via ssh
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1b15bbc6ee
commit
3a6d4600e2
95
.drone.yml
95
.drone.yml
|
@ -39,56 +39,55 @@ steps:
|
||||||
# ssh_key:
|
# ssh_key:
|
||||||
# from_secret: gitea_ssh_key
|
# from_secret: gitea_ssh_key
|
||||||
|
|
||||||
- name: hugo_build
|
|
||||||
image: alombarte/hugo
|
- name: build_site
|
||||||
when:
|
image: appleboy/drone-ssh
|
||||||
branch:
|
settings:
|
||||||
- main
|
host: newprobe.jamesravey.me
|
||||||
commands:
|
username: james
|
||||||
- git submodule init
|
port: 22
|
||||||
- git submodule update
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
script:
|
||||||
|
- cd /data/applications/brainsteam.co.uk
|
||||||
|
- git pull
|
||||||
- cd brainsteam
|
- cd brainsteam
|
||||||
- hugo
|
- ./build
|
||||||
# - cd ../
|
|
||||||
# - git fetch origin public && git checkout public
|
|
||||||
# - cp -r brainsteam/public new_files
|
# - name: hugo_build
|
||||||
# - rm -rf brainsteam/
|
# image: alombarte/hugo
|
||||||
# - cp -Tr new_files/ ./
|
|
||||||
# - rm -rf new_files/
|
|
||||||
- name: hugo_publish
|
|
||||||
image: alpine:3.12.3
|
|
||||||
image: appleboy/drone-git-push
|
|
||||||
# settings:
|
|
||||||
# remote_name: origin
|
|
||||||
# branch: public
|
|
||||||
# local_ref: public
|
|
||||||
# commit: true
|
|
||||||
# commit_message: update build from hugo
|
|
||||||
# author_name: DroneCI
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
environment:
|
|
||||||
INPUT_HASHFILE: hashes.sha256
|
|
||||||
INPUT_HASHTYPE: sha256
|
|
||||||
INPUT_PROTOCOL: ftp
|
|
||||||
INPUT_HOST: sv7.byethost7.org
|
|
||||||
INPUT_DESTINATION: /
|
|
||||||
INPUT_SOURCE: brainsteam/public
|
|
||||||
INPUT_USERNAME:
|
|
||||||
from_secret: FTP_USERNAME
|
|
||||||
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
|
|
||||||
- sh sync.sh
|
|
||||||
# - name: webmention_check
|
|
||||||
# image: 3apaxicom/npx
|
|
||||||
# when:
|
# when:
|
||||||
# branch:
|
# branch:
|
||||||
# - main
|
# - main
|
||||||
# commands:
|
# commands:
|
||||||
# - npx webmention https://brainsteam.co.uk/index.xml --limit 1 --send
|
# - git submodule init
|
||||||
|
# - git submodule update
|
||||||
|
# - cd brainsteam
|
||||||
|
# - hugo
|
||||||
|
|
||||||
|
|
||||||
|
# environment:
|
||||||
|
# INPUT_HASHFILE: hashes.sha256
|
||||||
|
# INPUT_HASHTYPE: sha256
|
||||||
|
# INPUT_PROTOCOL: ftp
|
||||||
|
# INPUT_HOST: sv7.byethost7.org
|
||||||
|
# INPUT_DESTINATION: /
|
||||||
|
# INPUT_SOURCE: brainsteam/public
|
||||||
|
# INPUT_USERNAME:
|
||||||
|
# from_secret: FTP_USERNAME
|
||||||
|
# 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
|
||||||
|
# - sh sync.sh
|
||||||
|
# # - name: webmention_check
|
||||||
|
# # image: 3apaxicom/npx
|
||||||
|
# # when:
|
||||||
|
# # branch:
|
||||||
|
# # - main
|
||||||
|
# # commands:
|
||||||
|
# # - npx webmention https://brainsteam.co.uk/index.xml --limit 1 --send
|
Loading…
Reference in New Issue