This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
/
circle.yml
64 lines (64 loc) · 1.73 KB
/
circle.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: 2.0
notify:
branches:
only:
- eol
jobs:
build:
docker:
- image: circleci/node:8.9.4
working_directory: ~/testpilot
steps:
- checkout
- restore_cache:
keys:
- v3-npm-deps-{{ checksum "package.json" }}
- v3-npm-deps-
- run:
name: Setup env
command: |
curl -L --create-dirs -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && chmod +x ~/bin/jq
./bin/circleci/install-node-dependencies.sh
- run:
name: Build frontend
command: |
./bin/circleci/build-version-json.sh
./bin/circleci/build-frontend.sh
- store_artifacts:
path: ~/testpilot/frontend.zip
- persist_to_workspace:
root: .
paths:
- ./*
- save_cache:
key: v3-npm-deps-{{ checksum "package.json" }}
paths:
- node_modules
static_deploy:
docker:
- image: circleci/node:8.9.4
steps:
- attach_workspace:
at: .
- run:
name: Install AWSCLI
command: |
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install awscli --upgrade
- run:
name: Static deployment
command: |
TESTPILOT_BUCKET=testpilot.dev.mozaws.net ./bin/circleci/do-exclusively.sh --branch eol ./bin/deploy.sh dev
./bin/circleci/invalidate-cloudfront-cache.sh E2ERG47PHCWD0Z
workflows:
version: 2
build_test_deploy:
jobs:
- build
- static_deploy:
requires:
- build
filters:
branches:
only: eol