[ci]: develop ci
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
parent
1669eeff4d
commit
b02e101946
33
.drone.yml
33
.drone.yml
@ -4,13 +4,13 @@ type: docker
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: build-site
|
||||
- name: build-site
|
||||
image: node:latest
|
||||
commands:
|
||||
- npm install
|
||||
- npm run build
|
||||
|
||||
- name: deploy
|
||||
- name: deploy
|
||||
image: mwienk/docker-lftp
|
||||
environment:
|
||||
USERNAME: pettinattk
|
||||
@ -18,12 +18,33 @@ steps:
|
||||
from_secret: password
|
||||
HOST: ftp.cluster027.hosting.ovh.net
|
||||
commands:
|
||||
- "ls"
|
||||
- echo $USERNAME
|
||||
- echo $HOST
|
||||
- echo $PASSWORD
|
||||
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: build-site
|
||||
image: node:latest
|
||||
commands:
|
||||
- npm install
|
||||
- npm run build
|
||||
|
||||
- name: deploy
|
||||
image: mwienk/docker-lftp
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: ssh_key
|
||||
commands:
|
||||
- mkdir -p /root/.ssh/ && echo $SSH_KEY > /root/.ssh/id_droneci && chmod 0600 /root/.ssh/id_droneci
|
||||
- ssh -i /root/.ssh/id_droneci -p 69 root@192.168.178.25 "mv /mnt/user/appdata/binhex-nginx/nginx/html /mnt/user/appdata/binhex-nginx/nginx/html$(date -I) && mkdir /mnt/user/appdata/binhex-nginx/nginx/html"
|
||||
- scp -i /root/.ssh/id_droneci -p 69 ./build/* root@192.168.178.25/mnt/user/appdata/binhex-nginx/nginx/html/
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- develop
|
||||
|
Loading…
Reference in New Issue
Block a user