Skip to content

Commit 6607ce1

Browse files
committed
Update pipeline
1 parent 7c01804 commit 6607ce1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.circleci/config.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,31 @@ version: 2
22
jobs:
33
frontend:
44
docker:
5-
- image: circleci/node:16.15.1
5+
- image: cimg/node:16.14
66
steps:
77
- checkout
88
- run:
99
name: "Install dependencies"
10-
command: yarn
10+
command: yarn install
11+
- run:
12+
name: "Run lint"
13+
command: yarn lint
1114
- run:
1215
name: "Build"
1316
command: yarn build
1417
- persist_to_workspace:
1518
root: .
1619
paths:
17-
- dist/*
20+
- internal/ui/dist/*
1821

1922
backend:
2023
docker:
21-
- image: circleci/golang:1.17
22-
23-
working_directory: /go/src/github.com/RoboCup-SSL/ssl-remote-control
24+
- image: cimg/go:1.18
2425
steps:
2526
- checkout
2627
- attach_workspace:
2728
at: .
29+
- run: go get -v -t -d ./...
2830
- run: go test -v ./...
2931
- run:
3032
command: |
@@ -44,7 +46,7 @@ jobs:
4446

4547
publish-github-release:
4648
docker:
47-
- image: circleci/golang:1.17
49+
- image: cimg/go:1.18
4850
steps:
4951
- attach_workspace:
5052
at: .
@@ -60,7 +62,7 @@ jobs:
6062
- run:
6163
name: "Publish Release on GitHub"
6264
command: |
63-
go get github.com/tcnksm/ghr
65+
go install github.com/tcnksm/ghr@v0.14.0
6466
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./release/
6567
6668
docker-build:
@@ -102,6 +104,7 @@ workflows:
102104
tags:
103105
only: /.*/
104106
- publish-github-release:
107+
context: github
105108
requires:
106109
- backend
107110
filters:

0 commit comments

Comments
 (0)