This commit is contained in:
parent
db46c7d38f
commit
50d9ce14cf
13
.forgejo/workflows/deploy_site.yaml
Normal file
13
.forgejo/workflows/deploy_site.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
on: [push]
|
||||||
|
env:
|
||||||
|
GOROOT: /usr/local/lib/go
|
||||||
|
jobs:
|
||||||
|
deploy_site:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: git.korhonen.cc/functionalhacker/hugo-asciidoc-docker-ci:latest
|
||||||
|
volumes:
|
||||||
|
- caddy_korhonen_cc:/korhonen.cc
|
||||||
|
steps:
|
||||||
|
- run: npm install
|
||||||
|
- run: hugo --gc --minify --cleanDestinationDir -d /korhonen.cc
|
|
@ -1,10 +0,0 @@
|
||||||
steps:
|
|
||||||
build:
|
|
||||||
image: git.korhonen.cc/functionalhacker/hugo-asciidoc-docker-ci:latest
|
|
||||||
commands:
|
|
||||||
- npm install
|
|
||||||
- hugo --gc --minify --cleanDestinationDir -d /korhonen.cc
|
|
||||||
volumes:
|
|
||||||
- /var/www/korhonen.cc:/korhonen.cc
|
|
||||||
environment:
|
|
||||||
- GOROOT=/usr/local/lib/go
|
|
Loading…
Reference in a new issue