Gianmarco Pettinato
6528779fb6
All checks were successful
continuous-integration/drone Build is passing
49 lines
1022 B
YAML
49 lines
1022 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: deploy
|
|
|
|
steps:
|
|
- name: build-site
|
|
image: node:latest
|
|
commands:
|
|
- npm install
|
|
- npm run build
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
- name: deploy
|
|
image: cschlosser/drone-ftps
|
|
environment:
|
|
FTP_USERNAME:
|
|
from_secret: username
|
|
FTP_PASSWORD:
|
|
from_secret: password
|
|
PLUGIN_HOSTNAME:
|
|
from_secret: host
|
|
PLUGIN_DEST_DIR: /www
|
|
PLUGIN_SRC_DIR: /build
|
|
PLUGIN_EXCLUDE: (.htaccess)|(.git)
|
|
when:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
# - name: deploy
|
|
# image: cschlosser/drone-ftps
|
|
# hostname:
|
|
# from_secret: net2ftp.cluster027.hosting.ovh.net
|
|
# environment:
|
|
# USERNAME:
|
|
# from_secret: username
|
|
# PASSWORD:
|
|
# from_secret: password
|
|
# HOST:
|
|
# from_secret: host
|
|
# commands:
|
|
# - echo $USERNAME
|
|
# - echo $PASSWORD
|
|
# - echo $HOST
|
|
# - lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/" |