cicd
This commit is contained in:
parent
8097362e50
commit
511a12bf13
34
.drone.yml
34
.drone.yml
@ -8,16 +8,38 @@ trigger:
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: build ru garden
|
||||
- name: build site
|
||||
# https://hub.docker.com/r/library/docker
|
||||
image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20
|
||||
commands:
|
||||
- cd garden/ru
|
||||
- docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./garden_ru:/usr/src/app/public --rm docker.struchkov.dev/quartz:local build
|
||||
- docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./public:/usr/src/app/public --rm docker.struchkov.dev/quartz:latest build
|
||||
- name: publish to server
|
||||
image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20
|
||||
environment:
|
||||
SSH_DEPLOY_KEY:
|
||||
from_secret: SSH_DEPLOY_KEY
|
||||
SSH_DEPLOY_HOST:
|
||||
from_secret: SSH_DEPLOY_HOST
|
||||
SSH_DEPLOY_PORT:
|
||||
from_secret: SSH_DEPLOY_PORT
|
||||
SSH_DEPLOY_PATH:
|
||||
from_secret: SSH_DEPLOY_PATH
|
||||
SSH_DEPLOY_USER:
|
||||
from_secret: SSH_DEPLOY_USER
|
||||
commands:
|
||||
- eval $(ssh-agent -s)
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$SSH_DEPLOY_KEY" >> ~/.ssh/id_rsa
|
||||
- chmod 700 ~/.ssh
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- scp -r -P $SSH_DEPLOY_PORT ./* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
|
||||
|
||||
# drone sign --save DockerFiles/quartz
|
||||
|
||||
# drone sign --save upagge/digital-garden
|
||||
---
|
||||
kind: signature
|
||||
hmac: cf0faf7e69ed98a6c0191b3578f874c41d6a297645bcf5c8cc1994c540f207ba
|
||||
hmac: b7f8b00f7df64952e737ae78232a8fa40e89c10ab5ea6f3d2adcb1ba6da564b8
|
||||
|
||||
...
|
||||
...
|
||||
|
@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
|
||||
*/
|
||||
const config: QuartzConfig = {
|
||||
configuration: {
|
||||
pageTitle: "🪴 Struchkov's Garden",
|
||||
pageTitle: "Struchkov's Garden 🪴",
|
||||
enableSPA: false,
|
||||
enablePopovers: true,
|
||||
analytics: {
|
||||
@ -68,9 +68,8 @@ const config: QuartzConfig = {
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
||||
Plugin.GitHubFlavoredMarkdown(),
|
||||
Plugin.TableOfContents(),
|
||||
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
||||
Plugin.CrawlLinks({ markdownLinkResolution: "relative" }),
|
||||
Plugin.Description(),
|
||||
Plugin.Latex({ renderEngine: "katex" }),
|
||||
],
|
||||
filters: [Plugin.RemoveDrafts()],
|
||||
emitters: [
|
||||
@ -78,7 +77,6 @@ const config: QuartzConfig = {
|
||||
Plugin.ComponentResources(),
|
||||
Plugin.ContentPage(),
|
||||
Plugin.FolderPage(),
|
||||
Plugin.TagPage(),
|
||||
Plugin.ContentIndex({
|
||||
enableSiteMap: true,
|
||||
enableRSS: true,
|
||||
|
@ -19,7 +19,6 @@ export const defaultContentPageLayout: PageLayout = {
|
||||
Component.Breadcrumbs(),
|
||||
Component.ArticleTitle(),
|
||||
Component.ContentMeta(),
|
||||
Component.TagList(),
|
||||
],
|
||||
left: [
|
||||
Component.PageTitle(),
|
||||
@ -34,27 +33,27 @@ export const defaultContentPageLayout: PageLayout = {
|
||||
drag: true, // whether to allow panning the view around
|
||||
zoom: true, // whether to allow zooming in and out
|
||||
depth: 1, // how many hops of notes to display
|
||||
scale: 1.1, // default view scale
|
||||
scale: 2, // default view scale
|
||||
repelForce: 0.5, // how much nodes should repel each other
|
||||
centerForce: 0.3, // how much force to use when trying to center the nodes
|
||||
linkDistance: 30, // how long should the links be by default?
|
||||
fontSize: 0.3, // what size should the node labels be?
|
||||
opacityScale: 1, // how quickly do we fade out the labels when zooming out?
|
||||
fontSize: 0.5, // what size should the node labels be?
|
||||
opacityScale: 2, // how quickly do we fade out the labels when zooming out?
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
showTags: false, // whether to show tags in the graph
|
||||
},
|
||||
globalGraph: {
|
||||
drag: true,
|
||||
zoom: true,
|
||||
depth: -1,
|
||||
scale: 0.9,
|
||||
scale: 2,
|
||||
repelForce: 0.5,
|
||||
centerForce: 0.3,
|
||||
linkDistance: 30,
|
||||
fontSize: 0.3,
|
||||
fontSize: 0.5,
|
||||
opacityScale: 1,
|
||||
removeTags: [], // what tags to remove from the graph
|
||||
showTags: true, // whether to show tags in the graph
|
||||
showTags: false, // whether to show tags in the graph
|
||||
},
|
||||
}),
|
||||
Component.DesktopOnly(Component.TableOfContents()),
|
||||
|
23
Garbage Collector
Normal file
23
Garbage Collector
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: docker-build-and-push
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: build ru garden
|
||||
# https://hub.docker.com/r/library/docker
|
||||
image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20
|
||||
commands:
|
||||
- cd garden/ru
|
||||
- docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./garden_ru:/usr/src/app/public --rm docker.struchkov.dev/quartz:local build
|
||||
|
||||
# drone sign --save DockerFiles/quartz
|
||||
---
|
||||
kind: signature
|
||||
hmac: cf0faf7e69ed98a6c0191b3578f874c41d6a297645bcf5c8cc1994c540f207ba
|
||||
|
||||
...
|
Loading…
Reference in New Issue
Block a user