|
1 | 1 | env:
|
2 |
| - SEGMENT_CONTEXTS: 'snyk,aws-credentials,ecr,saucelabs,npm-publish' |
| 2 | + SEGMENT_CONTEXTS: 'snyk,npm,aws-credentials,ecr' |
| 3 | + SEGMENT_BUILDKITE_IMAGE: 'analytics-next-ci-agent' |
| 4 | + |
3 | 5 | steps:
|
4 | 6 | - label: ':hammer: Build and Test'
|
| 7 | + agents: |
| 8 | + queue: v1 |
5 | 9 | command:
|
6 | 10 | - npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
|
7 | 11 | - yarn install --frozen-lockfile
|
8 |
| - - yarn lint || true |
9 | 12 | - yarn test
|
10 |
| - - yarn test:ci |
11 | 13 | plugins:
|
12 | 14 | - ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
|
13 | 15 | key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
|
14 | 16 | paths: ['node_modules/']
|
15 | 17 | s3_bucket_name: 'segment-buildkite-cache'
|
| 18 | + save: true |
16 | 19 | - docker#v3.3.0:
|
17 |
| - image: 528451384384.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci |
| 20 | + image: circleci/node:12.18-browsers |
18 | 21 | user: root
|
19 | 22 | environment:
|
20 | 23 | - NPM_TOKEN
|
21 |
| - - SAUCE_USERNAME |
22 |
| - - SAUCE_ACCESS_KEY |
| 24 | + - CHROME-BIN=google-chrome |
23 | 25 |
|
24 |
| - - label: ':hammer: Synk Setup' |
| 26 | + - label: '🔒 Snyk Security Check' |
| 27 | + agents: |
| 28 | + queue: v1 |
25 | 29 | plugins:
|
26 |
| - - ssh://[email protected]/segmentio/snyk-buildkite-plugin#v1.3.0: |
| 30 | + - ssh://[email protected]/segmentio/snyk-buildkite-plugin#v1.2.0: |
27 | 31 | runtime: npm
|
28 | 32 | fail-on: upgradable
|
29 |
| - severity-threshold: high |
30 | 33 |
|
31 | 34 | - wait: ~
|
32 | 35 |
|
| 36 | + - label: ':cloud: Upload Assets to stage bucket' |
| 37 | + branches: master staging |
| 38 | + agents: |
| 39 | + queue: v1 |
| 40 | + command: |
| 41 | + - echo "--- Upload" |
| 42 | + - NODE_ENV=production ./.buildkite/upload.sh |
| 43 | + plugins: |
| 44 | + - ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0: |
| 45 | + key: "v1-cache-dev-{{ checksum 'yarn.lock' }}" |
| 46 | + paths: ['node_modules/'] |
| 47 | + s3_bucket_name: 'segment-buildkite-cache' |
| 48 | + |
| 49 | + - label: ':cloud: Upload Assets to production bucket' |
| 50 | + branches: master |
| 51 | + agents: |
| 52 | + queue: v1 |
| 53 | + command: |
| 54 | + - echo "--- Upload" |
| 55 | + - NODE_ENV=production ./.buildkite/publish.sh |
| 56 | + plugins: |
| 57 | + - ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0: |
| 58 | + key: "v1-cache-dev-{{ checksum 'yarn.lock' }}" |
| 59 | + paths: ['node_modules/'] |
| 60 | + s3_bucket_name: 'segment-buildkite-cache' |
| 61 | + |
33 | 62 | - label: ':cloud: Publish'
|
34 | 63 | branches: master
|
35 | 64 | commands:
|
|
39 | 68 | - ssh://[email protected]/segmentio/cache-buildkite-plugin#v1.0.0:
|
40 | 69 | key: "v1-cache-dev-{{ checksum 'yarn.lock' }}"
|
41 | 70 | paths: ['node_modules/']
|
42 |
| - - docker#v3.3.0: |
43 |
| - image: 528451384384.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci |
44 |
| - user: root |
45 |
| - environment: |
46 |
| - - NPM_TOKEN |
| 71 | + s3_bucket_name: 'segment-buildkite-cache' |
0 commit comments