29 lines
579 B
YAML
29 lines
579 B
YAML
---
|
|
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:
|
|
USERNAME: pettinattk
|
|
PASSWORD:
|
|
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 |