Compare commits
4 Commits
1248934ffa
...
f0ea50082d
Author | SHA1 | Date |
---|---|---|
luca | f0ea50082d | |
Luca | 7efb75124a | |
Luca | 65d374ca5a | |
Luca | 200fa9aaf0 |
30
.drone.yml
30
.drone.yml
|
@ -5,22 +5,26 @@ type: docker
|
|||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/hugo
|
||||
settings:
|
||||
extended: yes
|
||||
validate: yes
|
||||
|
||||
- name: deploy
|
||||
image: alpine:3.12
|
||||
volumes:
|
||||
- name: site
|
||||
path: /var/www/html
|
||||
commands:
|
||||
- apk add --no-cache hugo
|
||||
- hugo
|
||||
- cp -r public/* /var/www/html
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: dragon.luj0ga.de
|
||||
username: www
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
passphrase:
|
||||
from_secret: ssh_passphrase
|
||||
target: /srv/www/sites/www.franconian.net/
|
||||
source: public/*
|
||||
rm: yes
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
|
||||
volumes:
|
||||
- name: site
|
||||
host:
|
||||
path: /srv/www/sites/www.franconian.net
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{ .Site.Title }}
|
||||
{{ end }}</title>
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
{{ $style := resources.Get "style.scss" | resources.ToCSS | minify }}
|
||||
{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue