22 lines
492 B
YAML
22 lines
492 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:
|
|
from_secret: username
|
|
$PASSWORD:
|
|
from_secret: password
|
|
$HOST:
|
|
from_secret: host
|
|
commands:
|
|
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/" |