This repository was archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
71 lines (62 loc) · 1.97 KB
/
.gitlab-ci.yml
File metadata and controls
71 lines (62 loc) · 1.97 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
stages:
- prebuild
# - build
- deploy
docker image:
stage: prebuild
image: docker:latest
variables:
DOCKER_TLS_CERTDIR: ""
services:
- docker:dind
only:
changes:
- Dockerfile
- requirements.txt
script:
- docker build -t $CI_REGISTRY/tivolicloud/docs:latest .
- docker login $CI_REGISTRY -u gitlab-ci-token -p $CI_JOB_TOKEN
- docker push $CI_REGISTRY/tivolicloud/docs:latest
pages:
stage: deploy
image: $CI_REGISTRY/tivolicloud/docs
script:
- mkdocs build -d public
- deno run --unstable -A changelog-rss.ts "Changelog" docs/changelog.md
- deno run --unstable -A changelog-rss.ts "Blender Tools Changelog" docs/blender-tools/changelog.md
- deno run --unstable -A changelog-rss.ts "Unity Avatar Exporter Changelog" docs/avatars/unity-avatar-exporter/changelog.md
artifacts:
paths:
- public
# build:
# stage: build
# image: $CI_REGISTRY/tivolicloud/docs
# script:
# - mkdocs build -d public
# artifacts:
# paths:
# - public
# push to s3:
# stage: deploy
# image: alpine:latest
# variables:
# S3_BUCKET: docs.tivolicloud.com
# S3_REGION: us-east-1
# # AWS_ACCESS_KEY_ID
# # AWS_SECRET_ACCESS_KEY
# needs:
# - job: build
# artifacts: true
# script:
# - apk add rclone
# # init rclone config
# - mkdir -p ~/.config/rclone
# - echo "[s3]" > ~/.config/rclone/rclone.conf
# - echo "type = s3" >> ~/.config/rclone/rclone.conf
# - echo "provider = AWS" >> ~/.config/rclone/rclone.conf
# - echo "env_auth = true" >> ~/.config/rclone/rclone.conf
# - echo "region = $S3_REGION" >> ~/.config/rclone/rclone.conf
# - echo "acl = private" >> ~/.config/rclone/rclone.conf
# # upload content
# - cd public
# - rclone sync -P . s3:$S3_BUCKET