forked from ungoogled-software/ungoogled-chromium-binaries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
37 lines (35 loc) · 1.82 KB
/
.cirrus.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
container:
dockerfile: .cirrus_Dockerfile
site_generation_task:
environment:
DEPLOYKEY_PRIVATE_BASE64: ENCRYPTED[1ffa134598cb5024cd48612a16e397e5e531db1fd65733e37404a122359c252093ad9c57e5045a101c714559099e9ecc]
pip_cache:
folder: ~/.cache/pip
populate_script: pip install -r utilities/requirements.txt
pip_install_script: pip install -r utilities/requirements.txt
check_config_script:
# Check all .inis between last successful build and now
- ./.cirrus_get_filelist.py | ./utilities/check_platform_ini.py -
site_generator_script:
# Run site_generator.py anywhere to verify INI files are well-formed
- git diff --cached --exit-code
- git diff --exit-code
- python3 utilities/site_generator.py
# Files are added and committed beyond this point
- eval '[[ "$CIRRUS_USER_COLLABORATOR" == "true" ]]' || exit 0
- eval '[[ "$CIRRUS_BRANCH" == "master" ]]' || exit 0
- eval '[[ "$CIRRUS_TAG" == "" ]]' || exit 0
- eval '[[ "$CIRRUS_PR" == "" ]]' || exit 0
- eval '[[ "$CIRRUS_REPO_FULL_NAME" == "ungoogled-software/ungoogled-chromium-binaries" ]]' || exit 0
- git diff --exit-code && exit 0
- git add *
- git config user.email 'cirrus@null'
- git config user.name 'Cirrus CI'
- mkdir -p ~/.ssh
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- eval "$(ssh-agent -s)"
- printf "$DEPLOYKEY_PRIVATE_BASE64" | base64 -d | ssh-add -
- git pull --ff-only "[email protected]:${CIRRUS_REPO_FULL_NAME}.git" $CIRRUS_BRANCH
- git commit -m "Regenerate site with $CIRRUS_CHANGE_IN_REPO" -m "$CIRRUS_CHANGE_MESSAGE" -m '[skip ci]'
- git push "[email protected]:${CIRRUS_REPO_FULL_NAME}.git" $CIRRUS_BRANCH
# vim: set expandtab shiftwidth=4 softtabstop=4: