Repository navigation
Expand file tree
/
Copy pathciwi-project.yaml
More file actions
105 lines (100 loc) · 2.75 KB
/
Copy pathciwi-project.yaml
File metadata and controls
105 lines (100 loc) · 2.75 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: 1
project:
name: VMPC2000XL Documentation
pipelines:
- id: build
trigger: manual
vcs_source:
repo: https://github.com/izzyreal/vmpc-docs.git
ref: master
jobs:
- id: linux
runs_on:
executor: script
shell: posix
os: linux
arch: amd64
container_image: vmpcsphinx
requires:
tools:
git: "*"
docker: "*"
container:
tools:
rinoh: "*"
sphinx-build: "*"
timeout_seconds: 1800
artifacts:
- _build/**
- _build_pdf/**
steps:
- run: rm -rf _build _build_pdf
- run: mkdir -p /tmp/ciwi-home/.cache /tmp/ciwi-home/.local/share
- run: sphinx-build . _build
- run: sphinx-build -b rinoh . _build_pdf
env:
HOME: /tmp/ciwi-home
XDG_CACHE_HOME: /tmp/ciwi-home/.cache
XDG_DATA_HOME: /tmp/ciwi-home/.local/share
- run: test -f _build/index.html
- run: test -f _build_pdf/vmpc2000xl.pdf
- id: publish
trigger: manual
depends_on:
- build
jobs:
- id: ftp
artifact_sources:
- pipeline: build
job: linux
runs_on:
executor: script
shell: posix
os: linux
arch: amd64
requires:
tools:
lftp: "*"
timeout_seconds: 900
steps:
- run: test -d _build
- run: test -f _build_pdf/vmpc2000xl.pdf
- run: |
FTP_HOST="server056.mijndomeinhosting.nl"
FTP_TARGET_DIR="vmpcdocs.izmar.nl"
test -n "$FTP_USER"
test -n "$FTP_PASS"
lftp -e "
set ftp:ssl-force true;
set ftp:ssl-protect-data true;
set ftp:passive-mode true;
open -u $FTP_USER,$FTP_PASS $FTP_HOST;
lcd _build;
cd $FTP_TARGET_DIR;
mirror --reverse --verbose .;
lcd ../_build_pdf;
put vmpc2000xl.pdf;
bye;
"
skip_dry_run: true
vault:
connection: home-vault
secrets:
- name: ftp-user
mount: kv
path: izmarnl
key: ftp-user
kv_version: 2
- name: ftp-password
mount: kv
path: izmarnl
key: ftp-password
kv_version: 2
env:
FTP_USER: "{{ secret.ftp-user }}"
FTP_PASS: "{{ secret.ftp-password }}"
pipeline_chains:
- name: Build and publish
pipelines:
- build
- publish