-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy path.gitlab-ci.yml
27 lines (24 loc) · 908 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
---
variables:
LEKTOR_BUILD_FLAGS: scss generate-cw-fractions
SITE_URL: community.torproject.org
STAGING_URL: community.staging.torproject.net
TRANSLATION_BRANCH: communitytpo-contentspot
include:
- project: tpo/tpa/ci-templates
file:
- lektor.yml
- static-shim-deploy.yml
# retrieve latest tpo/community/{onion-services/ecosystem,policies} build
# artifacts and place files under public/{onion-services/ecosystem,policies}
# such that they are deployed to community.tpo/{onion-services/ecosystem,policies}
.lektor:
scripts:
post-build:
- apt install -yq unzip
# policies
- mkdir public/policies
- wget -q https://gitlab.torproject.org/api/v4/projects/1972/jobs/artifacts/main/download\?job\=build -O policies.zip
- unzip policies.zip -d public/policies
- mv public/policies/public/* public/policies
- rmdir public/policies/public