-
Notifications
You must be signed in to change notification settings - Fork 29
/
screwdriver.yaml
51 lines (47 loc) · 1.27 KB
/
screwdriver.yaml
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
cache:
pipeline: [~/.yarn]
shared:
image: node:18
jobs:
main:
annotations:
screwdriver.cd/ram: TURBO
screwdriver.cd/cpu: TURBO
steps:
- install-chrome: ./build-scripts/setup-chrome.sh
- yarn-cache: yarn config set cache-folder ~/.yarn
- install: yarn install --frozen-lockfile
- test: yarn test
requires:
- ~pr
- ~commit
environment:
JOBS: 2
publish:
requires: main
steps:
- yarn-cache: yarn config set cache-folder ~/.yarn
- install: yarn install --frozen-lockfile
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- publish: |
. /tmp/ci/git-ssh.sh
yarn semantic-release
secrets:
- NPM_TOKEN
- GH_TOKEN
- GIT_KEY_BASE64
gh-pages:
requires: publish
steps:
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- yarn-cache: yarn config set cache-folder ~/.yarn
- install: yarn install --frozen-lockfile
- build-pages: |
npx ember github-pages:commit --message "Deploy gh-pages from $SD_BUILD_SHA"
- deploy: |
. /tmp/ci/git-ssh.sh
git push origin gh-pages:gh-pages
secrets:
- GIT_KEY_BASE64
environment:
JOBS: 2