-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwercker.yml
More file actions
61 lines (52 loc) · 1.36 KB
/
wercker.yml
File metadata and controls
61 lines (52 loc) · 1.36 KB
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
box: golang
build:
steps:
- setup-go-workspace:
package-dir: github.com/cloudnativego/react-zombieoutbreak
- script:
name: go get
code: |
cd $WERCKER_SOURCE_DIR
go version
export PATH=$WERCKER_SOURCE_DIR/bin:$PATH
go get -u github.com/Masterminds/glide
glide install
- script:
name: node pre-reqs
code: |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
source $HOME/.nvm/nvm.sh
nvm install 4
nvm use 4
npm install -g webpack
- script:
name: npm install
code: |
npm install -i
- script:
name: create React bundle
code: |
npm run build
- script:
name: go test
code: |
go test ./server -v -race
- script:
name: go build
code: |
go build
- script:
name: copy files to wercker output
code: |
cp -R ./ ${WERCKER_OUTPUT_DIR}
cd $WERCKER_OUTPUT_DIR
deploy:
steps:
- internal/docker-push:
username: $USERNAME
password: $PASSWORD
cmd: /pipeline/source/react-zombieoutbreak
port: "8080"
tag: latest
repository: cloudnativego/react-zombieoutbreak
registry: https://registry.hub.docker.com