default: image: node:latest tags: - node stages: - build - deploy build: stage: build artifacts: paths: - dist/ script: - npm install - npm run build deploy: stage: deploy before_script: - apt-get update - apt-get install ncftp script: - ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com docs dist/* environment: name: docs url: https://docs.pls5618.com