-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
55 lines (50 loc) · 882 Bytes
/
.gitlab-ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
stages:
- linter
- build
- upload
- add
variables:
GOLANGCI_LINT_VERSION: 'v1.57.2'
lint:
image: golangci/golangci-lint:$GOLANGCI_LINT_VERSION
stage: linter
script:
# Use default .golangci.yml file from the image if one is not present in the project root.
- '[ -e .golangci.yml ] || cp /golangci/.golangci.yml .'
- golangci-lint run
build:
stage: build
script:
- bazel build --keep_going //...
tags:
- k8s-mgit-bazel
upload:
stage: upload
script:
- upload-deb --config upload-deb.yaml
artifacts:
paths:
- deb-out/*
only:
refs:
- master
tags:
- k8s-mgit-bazel
add:
stage: add
variables:
GIT_STRATEGY: none
script:
- ~/upload-deb.py
only:
refs:
- master
after_script:
- rm -r deb-out/
needs:
- job: upload
artifacts: true
tags:
- mgit
- pkg