forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
25 lines (23 loc) · 1.06 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
container:
image: gcr.io/flutter-cirrus/build-website-image:latest
website_task:
env:
CIRRUS_WORKING_DIR: "/opt/website"
# For deploying master website to Firebase master branch site
FIREBASE_TOKEN: ENCRYPTED[e207f0b4fb77024c6a2d9f43b25c6a0d04b1e9f6ea77f50904d815a82062ad62043303ade58a2cab809848435799b01c]
git_fetch_script: git fetch origin
setup_script: ./tool/setup.sh
pub_cache:
folder: "$PUB_CACHE"
fingerprint_script: echo $OS && find "$CIRRUS_WORKING_DIR" -type f -name pubspec.yaml -print0 | xargs -0 sha256sum
test_script: ./tool/build_check_deploy.sh
docker_builder:
# Only build a new docker image when we tag a release. Can also be run manually.
only_if: $CIRRUS_TAG != ''
env:
GCLOUD_CREDENTIALS: ENCRYPTED[f7c098d4dd7f5ee1bfee0bb7e944cce72efbe10e97ad6440ae72de4de6a1c24d23f421a2619c668e94377fb64b0bb3e6]
depends_on:
- website
build_script: "$CIRRUS_WORKING_DIR/tool/docker/docker_build.sh"
login_script: "$CIRRUS_WORKING_DIR/tool/docker/docker_login.sh"
push_script: "$CIRRUS_WORKING_DIR/tool/docker/docker_push.sh"