chore: add drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
uetchy 2022-01-11 15:55:36 +09:00
parent ca831cec40
commit a56a81afed
5 changed files with 33 additions and 50 deletions

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
kind: pipeline
type: docker
name: default
steps:
- name: Build and push
image: plugins/docker
settings:
repo: ghcr.io/uetchy/uechi.io
tags: latest
registry: ghcr.io
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: Trigger Watchtower Update
image: alpine/curl
commands:
- |
curl -s -H "Authorization: Bearer ${WATCHTOWER_TOKEN} https://watchtower.uechi.dev/v1/update
environment:
WATCHTOWER_TOKEN:
from_secret: watchtower_token

View File

@ -1,19 +0,0 @@
---
label: Blog post
hide_body: false
fields:
- type: text
name: title
label: title
config:
required: false
- type: datetime
name: date
label: date
default: now
config:
required: true
pages:
- _posts/2019-10-25-bose-noise-cancelling-headphones-700レビュー.md
- _posts/pixiv-spring-boot-camp-2020.md
- _posts/静寂を得る方法.md

View File

@ -1,28 +0,0 @@
---
new_page_extension: md
auto_deploy: false
admin_path: ""
webhook_url:
sections:
- type: directory
path: source/_posts
label: Posts
create: documents
match: "**/*"
- type: directory
path: source/_pages
label: Pages
create: documents
match: "**/*"
upload_dir: source/uploads
public_path: "/uploads"
front_matter_path: ""
use_front_matter_path: false
file_template: ":filename:"
build:
preview_output_directory: public
install_dependencies_command: npm i
preview_docker_image: forestryio/ruby:2.6
mount_path: "/srv"
working_dir: "/srv"
instant_preview_command: yarn server

3
.gitignore vendored
View File

@ -8,4 +8,5 @@ db.json
*.log
public/
.deploy*/
yarn.lock
yarn.lock
.drone.secrets

View File

@ -4,14 +4,19 @@
## Build
```
```bash
n 15
yarn build
```
## Publish
```
```bash
git commit -m "New article"
git push
# or
# brew install drone-cli
drone exec --secret-file .drone.secrets
```