haasp.net/.gitlab-ci.yml
Christoffer Martinsson 5cff7c996e Updated CI
2018-10-24 00:04:07 +02:00

20 lines
633 B
YAML

# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/hugo
image: dettmering/hugo-build
variables:
GIT_SUBMODULE_STRATEGY: recursive
PROJECT_NAME: haasp
before_script:
- apk --no-cache upgrade && apk --no-cache add samba samba-common-tools supervisor
build:
script:
- hugo
- smbclient '//192.168.30.10/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; rmdir '$PROJECT_NAME';'
- smbclient '//192.168.30.10/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; mkdir '$PROJECT_NAME'; cd '$PROJECT_NAME'; lcd public; mput *'
only:
- master