Add .gitlab-ci.yml
This commit is contained in:
parent
b1410c87b6
commit
5cbee19b9b
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
@ -0,0 +1,18 @@
|
||||
# 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
|
||||
|
||||
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 '$CI_PROJECT_NAME';'
|
||||
- smbclient '//192.168.30.10/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; mkdir '$CI_PROJECT_NAME'; cd '$CI_PROJECT_NAME'; lcd public; mput *'
|
||||
only:
|
||||
- master
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user