This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
2022-04-17 10:16:40 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build front
|
2024-01-05 09:50:34 +00:00
|
|
|
image: node:21-alpine
|
2022-04-17 10:16:40 +00:00
|
|
|
commands:
|
|
|
|
- npm install --network-timeout=100000
|
|
|
|
- npm run build
|
|
|
|
|
|
|
|
- name: deploy
|
2023-02-13 10:08:01 +00:00
|
|
|
image: appleboy/drone-scp:linux-arm64
|
2022-04-17 10:16:40 +00:00
|
|
|
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
|