This commit is contained in:
parent
c4b68452cb
commit
fdcfaea7da
53
.drone.yml
Normal file
53
.drone.yml
Normal file
@ -0,0 +1,53 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: makeit-graffiti
|
||||
|
||||
steps:
|
||||
- name: 'build'
|
||||
image: node:14
|
||||
volumes:
|
||||
- name: node_modules_cache
|
||||
path: /drone/src/node_modules
|
||||
commands:
|
||||
- pwd
|
||||
- ls -al
|
||||
- npm config set registry https://registry.npmmirror.com/
|
||||
- npm i
|
||||
- npm run build
|
||||
|
||||
- name: 'copy'
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
from_secret: secret_host
|
||||
username:
|
||||
from_secret: secret_username
|
||||
password:
|
||||
from_secret: secret_password
|
||||
port: 22
|
||||
source: ./dist/*
|
||||
target: /makeit/web/graffiti
|
||||
|
||||
- name: 'deploy'
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: secret_host
|
||||
username:
|
||||
from_secret: secret_username
|
||||
password:
|
||||
from_secret: secret_password
|
||||
port: 22
|
||||
command_timeout: 3m
|
||||
script:
|
||||
- echo '====== deploy start ======'
|
||||
- cd /makeit/web/graffiti
|
||||
- rm -rf index.html favicon.ico ads.txt js css fonts img
|
||||
- mv ./dist/* ./
|
||||
- rm -rf dist
|
||||
- echo '====== deploy success ======'
|
||||
|
||||
volumes:
|
||||
- name: node_modules_cache
|
||||
host:
|
||||
path: /makeit/web/drone/node_modules
|
1
public/ads.txt
Normal file
1
public/ads.txt
Normal file
@ -0,0 +1 @@
|
||||
google.com, pub-7641518914657853, DIRECT, f08c47fec0942fa0
|
Loading…
Reference in New Issue
Block a user