-
Notifications
You must be signed in to change notification settings - Fork 15
/
.cirrus.yml
39 lines (36 loc) · 939 Bytes
/
.cirrus.yml
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
task:
name: Build Web
skip: "!changesInclude('.cirrus.yml', 'web/**')"
container:
image: node:latest
env:
NODE_OPTIONS: --openssl-legacy-provider
node_modules_cache:
folder: node_modules
fingerprint_script: cat web/package-lock.json
populate_script: make ci-setup-web
build_script: make build-web
task:
name: Lint Api
container:
image: golangci/golangci-lint:v1.23.8
lint_script: golangci-lint run --timeout=10m -v --out-format json > lint-report.json
always:
golangci_artifacts:
path: lint-report.json
type: text/json
format: golangci
task:
name: Build Api
container:
image: golang:1.16
env:
GOPROXY: https://proxy.golang.org
modules_cache:
fingerprint_script: cat go.sum
folder: $GOPATH/pkg/mod
build_script: make build-api
test_script: make test-api
docker_builder:
name: Build Docker Image
build_script: docker build --tag periskop .