This commit is contained in:
parent
cca01dc055
commit
669b498717
43
.drone.yml
Normal file
43
.drone.yml
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: build front
|
||||
image: node:17-alpine
|
||||
commands:
|
||||
- apk --no-cache add python2 build-base
|
||||
- npm install --network-timeout=100000
|
||||
- npm run build
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
tar_tmp_path: /tmp/
|
||||
host: adlin.nemunai.re
|
||||
target: /var/www/nemunai.re/adlin/videos/
|
||||
source: build/*
|
||||
strip_components: 1
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
key:
|
||||
from_secret: deploy_key
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- cron
|
||||
- push
|
||||
- tag
|
Reference in New Issue
Block a user