Browse Source

Fix deployment scripts/config

nat64
Silke 4 years ago
parent
commit
6fb62ade72
  1. 12
      .gitlab-ci.yml
  2. 3
      config.yaml
  3. 2
      deploy.sh

12
.gitlab-ci.yml

@ -1,5 +1,5 @@
variables:
WWW_DIR: /www/default/
WWW_DIR: /var/www/slxh/
build:
type: build
@ -13,10 +13,12 @@ deploy-production:
type: deploy
script:
- ./deploy.sh less hugo minify
- rsync -a public/ $WWW_DIR
- rsync -a public/ $WWW_DIR --delete
environment:
name: production
url: https://www.slxh.nl
url: https://slxh.nl
variables:
HUGO_CANONIFYURLS: true
only:
- master
@ -26,6 +28,8 @@ deploy-ipfs:
- ./deploy.sh less hugo minify ipfs
environment:
name: ipfs
url: https://ipfs.slxh.nl
url: https://ipfs.slxh.nl
variables:
HUGO_RELATIVEURLS: true
only:
- master

3
config.yaml

@ -1,9 +1,8 @@
baseurl: https://www.slxh.nl/
baseURL: "https://slxh.nl/"
languageCode: en-GB
title: SLXH.nl
paginate: 10
relativeurls: true
permalinks:
blog: /blog/:year/:title/

2
deploy.sh

@ -2,7 +2,7 @@
set -euo pipefail
# Default arguments for Hugo
if [ -z ${var+x}]; then
if [ -z ${HUGOARGS+x}]; then
HUGOARGS="--cleanDestinationDir"
fi

Loading…
Cancel
Save