Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
Website
Commits
43c57177
Commit
43c57177
authored
May 22, 2017
by
Steffen Vogel
🎅🏼
Browse files
added GitLab CI config
parent
729f68d5
Pipeline
#14991
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
43c57177
stages
:
-
build
-
deploy
# Stage: build
##############################################################################
build
:
stage
:
build
artifacts
:
paths
:
-
build
script
:
-
make build
tags
:
-
docker
image
:
jekyll/jekyll:builder
# Stage: deploy
##############################################################################
upload
:
stage
:
deploy
script
:
-
make deploy
dependencies
:
-
build
tags
:
-
shell
\ No newline at end of file
Makefile
View file @
43c57177
#DEPLOY_USER ?= fine-aachenadmin
#DEPLOY_PASS ?= $(shell pass rwth/acs/fein-webspace)
#DEPLOY_URL ?= https://web-upload.rwth-aachen.de/fine-aachen/new/
DEPLOY_USER
?=
acs
DEPLOY_HOST
?=
villas.fein-aachen.org
DEPLOY_PATH
?=
/var/www/villas/website/
SRCDIR
:=
$(
realpath
$(
dir
$(
lastword
$(MAKEFILE_LIST)
)))
BUILDDIR
?=
$(SRCDIR)
/build
RSYNC_OPTS
?=
--archive
--delete
--verbose
--progress
--ignore-missing-args
--copy-links
--chown
$(DEPLOY_USER)
:
$(DEPLOY_USER)
DAVIX_OPTS
?=
-r10
--userlogin
$(DEPLOY_USER)
--userpass
$(DEPLOY_PASS)
JEKYLL_OPTS
?=
-s
$(SRCDIR)
-d
$(BUILDDIR)
build
:
jekyll build
jekyll build
$(JEKYLL_OPTS)
deploy
:
deploy-rsync
deploy-rsync
:
rsync
$(RSYNC_OPTS)
$(BUILDDIR)
$(DEPLOY_USER)
@
$(DEPLOY_HOST)
:
$(DEPLOY_PATH)
deploy
:
build
rsync
-a
--delete
_site/ root@villas.fein-aachen.org:/var/www/villas/website/
deploy-webdav
:
# Davix returns 255 for some reason...
davix-put
$(DAVIX_OPTS)
$(BUILDDIR)
/
$(DEPLOY_URL)
||
true
.PHONY
:
build deploy
\ No newline at end of file
.PHONY
:
build deploy deploy-rsync deploy-webdav
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment