diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5f972a8 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/.forestry/front_matter/templates/blog-post.yml b/.forestry/front_matter/templates/blog-post.yml deleted file mode 100644 index 5892b35..0000000 --- a/.forestry/front_matter/templates/blog-post.yml +++ /dev/null @@ -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 diff --git a/.forestry/settings.yml b/.forestry/settings.yml deleted file mode 100644 index eceb520..0000000 --- a/.forestry/settings.yml +++ /dev/null @@ -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 diff --git a/.gitignore b/.gitignore index cba2e19..983bcfe 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ db.json *.log public/ .deploy*/ -yarn.lock \ No newline at end of file +yarn.lock +.drone.secrets \ No newline at end of file diff --git a/README.md b/README.md index e9e235d..fcf8bc6 100644 --- a/README.md +++ b/README.md @@ -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 ```