drone.yml & ads
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
makeit 2024-08-07 14:02:15 +08:00
parent c4b68452cb
commit fdcfaea7da
2 changed files with 54 additions and 0 deletions

53
.drone.yml Normal file
View 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
View File

@ -0,0 +1 @@
google.com, pub-7641518914657853, DIRECT, f08c47fec0942fa0