-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.gitlab-ci.yml
42 lines (39 loc) · 1021 Bytes
/
.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
---
stages:
- build-docs
- publish-docs
- trigger-upload
build-docs-html:
stage: build-docs
image: python:3.8
script:
- apt update && apt install python3-enchant -y
- pip install -U pip setuptools wheel nox
- nox -e docs
- mv docs/_build/html html
artifacts:
paths:
- html
expire_in: 30 days
pages:
stage: publish-docs
image: debian:bullseye-slim
script:
- mv html public
- 'echo "Gitlab Pages available at: ${CI_PAGES_URL}"'
artifacts:
paths:
- public
expire_in: 30 days
trigger-upload:
stage: trigger-upload
rules:
- if: '$CI_COMMIT_REF_PROTECTED == "true" && $CI_PROJECT_PATH == $CICD_UPSTREAM_PATH'
variables:
ARTIFACT_PIPELINE_ID: $CI_PIPELINE_ID
GITLAB_PROJECT_PATH: "saltstack%2Fopen%2Fsalt-ext%2Fsalt-ext-modules-vmware"
DOCS_PATH: "docs.saltproject.io/salt/extensions/salt-ext-modules-vmware/en/latest"
RCLONE_OPTIONS: "sync -c -v"
trigger:
project: saltstack/open/docs/docs-upload
strategy: depend