Merge pull request 'Deploy site using 'scp'' (#3) from scp_deploy into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
f0ea50082d
30
.drone.yml
30
.drone.yml
|
@ -5,22 +5,26 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: plugins/hugo
|
||||||
|
settings:
|
||||||
|
extended: yes
|
||||||
|
validate: yes
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine:3.12
|
image: appleboy/drone-scp
|
||||||
volumes:
|
settings:
|
||||||
- name: site
|
host: dragon.luj0ga.de
|
||||||
path: /var/www/html
|
username: www
|
||||||
commands:
|
key:
|
||||||
- apk add --no-cache hugo
|
from_secret: ssh_key
|
||||||
- hugo
|
passphrase:
|
||||||
- cp -r public/* /var/www/html
|
from_secret: ssh_passphrase
|
||||||
|
target: /srv/www/sites/www.franconian.net/
|
||||||
|
source: public/*
|
||||||
|
rm: yes
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: site
|
|
||||||
host:
|
|
||||||
path: /srv/www/sites/www.franconian.net
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{ .Site.Title }}
|
{{ .Site.Title }}
|
||||||
{{ end }}</title>
|
{{ end }}</title>
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<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 }}">
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue