2019-11-22 22:48:49 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: meshviewer build
|
|
|
|
|
|
|
|
clone:
|
|
|
|
depth: 50
|
|
|
|
|
2019-11-22 22:53:39 +00:00
|
|
|
steps:
|
2019-11-22 22:53:01 +00:00
|
|
|
# - name: clone git
|
|
|
|
# image: docker:git
|
|
|
|
# commands:
|
|
|
|
# - git submodule update --recursive --init
|
2019-11-22 22:48:49 +00:00
|
|
|
|
|
|
|
- name: build on node 12
|
|
|
|
image: node:12.12.0-stretch
|
|
|
|
commands:
|
2019-11-22 22:53:01 +00:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
- yarn --version
|
2019-11-22 22:49:56 +00:00
|
|
|
- pwd
|
2019-11-22 22:48:49 +00:00
|
|
|
- ls -alh
|
2019-11-22 22:53:01 +00:00
|
|
|
- npm i gulp-cli -g
|
|
|
|
- yarn
|
|
|
|
- gulp
|
2019-11-22 22:48:49 +00:00
|
|
|
|
|
|
|
# - name: backup-old-firmware
|
|
|
|
# image: appleboy/drone-ssh
|
|
|
|
# settings:
|
|
|
|
# host: 46.4.138.183
|
|
|
|
# username: fwupload
|
|
|
|
# key:
|
|
|
|
# from_secret: ssh-update
|
|
|
|
# port: 22
|
|
|
|
# command_timeout: 120m
|
|
|
|
# script:
|
|
|
|
# - ./rsync-backup.sh
|
|
|
|
# - rm -rf /srv/fwuploads/troisdorf/*
|
|
|
|
|