/
config.yml
55 lines (53 loc) · 1.44 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: 2
jobs:
build:
docker:
- image: mrkkrp/mk-com:0.2.0
steps:
- checkout
# - restore_cache:
# keys:
# - stack-home-{{ checksum "stack.yaml" }}
# - stack-home-
# - restore_cache:
# keys:
# - stack-work-{{ checksum "stack.yaml" }}
# - stack-work-
# - run: stack --version
# - run: stack setup
- run: stack build
- run: stack test
- run: stack exec mk-com -- clean
- run: pdflatex -output-directory resume/ resume/resume.tex
- run: stack exec mk-com
- run: html5validator --root _build/ --show-warnings
- persist_to_workspace:
root: ~/project
paths:
- _build
# - save_cache:
# key: stack-home-{{ checksum "stack.yaml" }}
# paths: "~/.stack"
# - save_cache:
# key: stack-work-{{ checksum "stack.yaml" }}
# paths: ".stack-work"
deploy:
docker:
- image: mrkkrp/mk-com:0.2.0
steps:
- attach_workspace:
at: /tmp
- run:
name: Copy to the droplet with rsync
command: rsync -avz -e "ssh -p 2555 -o \"StrictHostKeyChecking no\"" /tmp/_build/ admin@markkarpov.com:/home/admin/markkarpov.com
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master