forked from screwdriver-cd/screwdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscrewdriver.yaml
90 lines (84 loc) · 3.1 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
workflow:
- publish
- beta
- prod
shared:
image: node:6
jobs:
main:
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
- install: npm install
- duplicate: NPM_FILTER=screwdriver- ./ci/npm-dups.sh
- test: npm test
- coverage: ./ci/coverage.sh
secrets:
# Uploading coverage information to coveralls
- COVERALLS_REPO_TOKEN
publish:
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
- install-ci: npm install npm-auto-version
- publish-npm: ./ci/publish.sh
- publish-docker: ./ci/docker.sh
environment:
DOCKER_REPO: screwdrivercd/screwdriver
secrets:
# Publishing to NPM
- NPM_TOKEN
# Pushing tags to Git
- GIT_KEY
# Trigger a Docker Hub build
- DOCKER_TRIGGER
# Deploy to our beta environment and run tests
beta:
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
- get-tag: ./ci/git-latest.sh
- wait-docker: DOCKER_TAG=`cat VERSION` ./ci/docker-wait.sh
- deploy-k8s: K8S_TAG=`cat VERSION` ./ci/k8s-deploy.sh
- test: npm install && npm run functional
environment:
DOCKER_REPO: screwdrivercd/screwdriver
K8S_CONTAINER: screwdriver-api
K8S_IMAGE: screwdrivercd/screwdriver
K8S_HOST: api.k8s.screwdriver.cd
K8S_DEPLOYMENT: sdapi-beta
SD_API_HOST: beta.api.screwdriver.cd
K8S_ENV_KEY: DATASTORE_DYNAMODB_PREFIX
K8S_ENV_VALUE: beta_rc2_
TEST_USERNAME: sd-buildbot
TEST_ORG: screwdriver-cd-test
secrets:
# Access key for functional tests
- SD_API_TOKEN
# Git access token
- GIT_TOKEN
# Talking to Kubernetes
- K8S_TOKEN
# Deploy to our prod environment and run tests
prod:
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
- get-tag: ./ci/git-latest.sh
- wait-docker: DOCKER_TAG=`cat VERSION` ./ci/docker-wait.sh
- deploy-k8s: K8S_TAG=`cat VERSION` ./ci/k8s-deploy.sh
- test: npm install && npm run functional
environment:
DOCKER_REPO: screwdrivercd/screwdriver
K8S_CONTAINER: screwdriver-api
K8S_IMAGE: screwdrivercd/screwdriver
K8S_HOST: api.k8s.screwdriver.cd
K8S_DEPLOYMENT: sdapi
SD_API_HOST: api.screwdriver.cd
K8S_ENV_KEY: DATASTORE_DYNAMODB_PREFIX
K8S_ENV_VALUE: rc2_
TEST_USERNAME: sd-buildbot
TEST_ORG: screwdriver-cd-test
secrets:
# Access key for functional tests
- SD_API_TOKEN
# Git access token
- GIT_TOKEN
# Talking to Kubernetes
- K8S_TOKEN