add drone
This commit is contained in:
parent
c1aad02baa
commit
ee14f7140a
25
.drone.yml
Normal file
25
.drone.yml
Normal file
@ -0,0 +1,25 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
type: docker
|
||||
steps:
|
||||
- name: blog
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username: kasperhermansen
|
||||
password:
|
||||
from_secret:
|
||||
docker_secret
|
||||
repo: kasperhermansen/kasperhermansen-blog
|
||||
tags: latest
|
||||
- name: send telegram notification
|
||||
image: appleboy/drone-telegram
|
||||
settings:
|
||||
token:
|
||||
from_secret: telegram_token
|
||||
to: 2129601481
|
||||
format: markdown
|
||||
depends_on:
|
||||
- client
|
||||
- server
|
||||
when:
|
||||
status: [failure]
|
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
.idea/blog-2.iml
Normal file
9
.idea/blog-2.iml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/blog-2.iml" filepath="$PROJECT_DIR$/.idea/blog-2.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
7
.idea/vcs.xml
Normal file
7
.idea/vcs.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/themes/anubis" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
8
Caddyfile
Normal file
8
Caddyfile
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
auto_https off
|
||||
}
|
||||
|
||||
http://blog.kasperhermansen.com {
|
||||
root * /usr/share/caddy
|
||||
file_server
|
||||
}
|
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM klakegg/hugo:0.93.2-onbuild as builder
|
||||
COPY . /src
|
||||
|
||||
FROM caddy:2.1.1 as run
|
||||
|
||||
COPY --from=builder /target/ /usr/share/caddy/
|
||||
|
||||
COPY ./Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
|
10
config.yaml
10
config.yaml
@ -15,6 +15,10 @@ menu:
|
||||
url: /posts/
|
||||
weight: 0
|
||||
|
||||
taxonomies:
|
||||
category: "categories"
|
||||
tag: "tags"
|
||||
|
||||
params:
|
||||
author: "Kasper J. Hermansen"
|
||||
email: contact@kasperhermansen.com # used for microformats
|
||||
@ -29,7 +33,7 @@ params:
|
||||
# - js/main.js # relative path to "assets" directory
|
||||
dateFormat: "2006-01-02"
|
||||
paginationSinglePost: true
|
||||
style: dark-with-switcher
|
||||
style: dark
|
||||
readMore: false # show read more button
|
||||
readNextPosts: 5 # show 5 related posts, 0 by default
|
||||
disableSummary: false
|
||||
@ -46,7 +50,7 @@ params:
|
||||
data: "https://comments.example.com/" # mandatory
|
||||
jsLocation: "https://comments.example.com/js/embed.min.js" # mandatory
|
||||
css: true # optional
|
||||
lang: "de" # optional
|
||||
lang: "dk" # optional
|
||||
replyToSelf: true # mandatory
|
||||
requireAuthor: true # mandatory
|
||||
requireEmail: true # mandatory
|
||||
@ -60,7 +64,7 @@ params:
|
||||
pingback: true
|
||||
social:
|
||||
- id: github
|
||||
name: gohugoio
|
||||
name: kjuulh
|
||||
# - id: hugo
|
||||
# url: "https://gohugo.io/"
|
||||
# icon: "hugo"
|
||||
|
7
content/post/_index.md
Normal file
7
content/post/_index.md
Normal file
@ -0,0 +1,7 @@
|
||||
+++
|
||||
aliases = ["posts","articles","blog","showcase","docs"]
|
||||
title = "Posts"
|
||||
author = "kjuulh"
|
||||
tags = ["index"]
|
||||
+++
|
||||
|
12
content/post/start-of-blog.md
Normal file
12
content/post/start-of-blog.md
Normal file
@ -0,0 +1,12 @@
|
||||
+++
|
||||
author = "kjuulh"
|
||||
title = "Start of blog"
|
||||
date = "2022-05-22"
|
||||
description = "Start of the blog"
|
||||
aliases = ["start"]
|
||||
favorite = false
|
||||
+++
|
||||
|
||||
Some start of blog
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user