Website build with Hugo https://slxh.nl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
700 B

variables:
HUGO_ARGS: --cleanDestinationDir --minify
WWW_DIR: /var/www/slxh/
build:
stage: build
script:
- hugo ${HUGO_ARGS}
artifacts:
paths:
- public
deploy-production:
stage: deploy
script:
- hugo ${HUGO_ARGS}
- rsync -a public/ $WWW_DIR --delete
environment:
name: production
url: https://slxh.nl
variables:
HUGO_CANONIFYURLS: 'true'
only:
- master
deploy-ipfs:
stage: deploy
script:
- hugo ${HUGO_ARGS}
- ipfs add -qr public/ | tee ipfs.log
- ipfs name publish /ipfs/$(tail -n1 ipfs.log)
environment:
name: ipfs
url: https://ipfs.slxh.nl
variables:
HUGO_RELATIVEURLS: 'true'
only:
- master