Skip to content

Commit ebabcc8

Browse files
committed
[build] update circleci
1 parent 69e0fde commit ebabcc8

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.circleci/config.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
jobs:
3-
ui:
3+
frontend:
44
docker:
55
- image: circleci/node:10.8.0
66
steps:
@@ -20,23 +20,38 @@ jobs:
2020
command: npm run build
2121
working_directory: ui
2222

23-
build:
23+
backend:
2424
docker:
2525
- image: circleci/golang:1.10
2626

2727
working_directory: /go/src/github.com/g3force/ssl-game-controller
2828
steps:
29+
- checkout
2930
- attach_workspace:
3031
at: ./ui/dist
31-
- checkout
3232
- run: go get -v -t -d ./...
3333
- run: go test -v ./...
3434

35+
deploy:
36+
docker:
37+
- image: circleci/golang:1.10
38+
39+
working_directory: /go/src/github.com/g3force/ssl-game-controller
40+
steps:
41+
- checkout
42+
- attach_workspace:
43+
at: ./ui/dist
44+
- run: go get -v -t -d ./...
45+
- run: ./release.sh
46+
- run: ll release && tree release
47+
48+
3549
workflows:
3650
version: 2
3751
release:
3852
jobs:
39-
- ui
40-
- build:
53+
- frontend
54+
- backend
55+
- deploy:
4156
requires:
42-
- ui
57+
- frontend

0 commit comments

Comments
 (0)