-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
54 lines (50 loc) · 1.45 KB
/
.gitlab-ci.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
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
sphinx-documentation-html:
tags:
- docker, debian, amd64
image:
name: ${CI_REGISTRY}/internal/docker-sphinx:latest
script:
- make html
artifacts:
paths:
- _build/html
pre-commit:
tags:
- debian, docker, amd64
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
image:
name: ${CI_REGISTRY}/internal/docker-utils:latest
script:
- pre-commit run --all-files --show-diff-on-failure
cache:
paths:
- ${PRE_COMMIT_HOME}
deployment_staging:
when: manual
tags:
- docker, debian, amd64
needs:
- sphinx-documentation-html
image:
name: ${CI_REGISTRY}/internal/docker-utils:latest
script:
- lftp -e "mirror --reverse --delete -n -e _build/html /igor-pro-coding-conventions; bye" -u $FTP_USER_DOCS_STAGING,$FTP_PW_DOCS_STAGING byte-physics.de
deployment:
tags:
- docker, debian, amd64
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
when: on_success
needs:
- sphinx-documentation-html
- job: pre-commit
artifacts: false
image:
name: ${CI_REGISTRY}/internal/docker-utils:latest
script:
- lftp -e "mirror --reverse --delete -n -e _build/html /igor-pro-coding-conventions; bye" -u $FTP_USER_DOCS,$FTP_PW_DOCS byte-physics.de