added hugo updater ref to the deploy script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-03-11 21:32:57 +01:00
parent 461fe68c00
commit 978bf9ea04
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 6 additions and 3 deletions

@ -37,7 +37,7 @@ steps:
- eval $(ssh-agent) - eval $(ssh-agent)
- ssh-add ~/.ssh/overlord - ssh-add ~/.ssh/overlord
- git pull - git pull
- ./deploy - ./deploy "0.67.0"
when: when:
status: status:
- success - success

7
deploy

@ -1,12 +1,15 @@
#!/bin/sh #!/bin/bash
USR=dotyaoverlord USR=dotyaoverlord
HOST=dotya.ml HOST=dotya.ml
DIR=public/ DIR=public/
HUGO_VERSION=$1
gethugo $HUGO_VERSION
git submodule init git submodule init
git submodule update git submodule update
../hugo --gc=true --minify hugo version
hugo --gc=true --minify
if [ $USER = $USR ]; then if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${DIR} rsync -av --delete public/ ~/${DIR}