forked from metallb/metallb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
87 lines (86 loc) · 2.9 KB
/
config.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- mode: yaml -*-
version: 2
jobs:
test-1.13:
working_directory: /go/src/go.universe.tf/metallb
docker:
- image: circleci/golang:1.13
steps:
- checkout
- run: sudo apt-get install python-pip
- run: sudo pip install invoke semver pyyaml
- run: echo "export GO111MODULE=on" >>$BASH_ENV
- run: go test -short ./...
- run: go test -short -race ./...
- run: cp manifests/metallb.yaml manifests/metallb.yaml.prev
lint-1.13:
working_directory: /go/src/go.universe.tf/metallb
docker:
- image: circleci/golang:1.13
steps:
- checkout
- run: echo "export GO111MODULE=on" >>$BASH_ENV
- run: curl -L https://git.io/vp6lP | sh # gometalinter
- run: PATH=./bin:$PATH gometalinter --deadline=5m --disable-all --enable=gofmt --enable=vet --vendor ./...
deploy-controller:
working_directory: /go/src/go.universe.tf/metallb
docker:
- image: circleci/golang:1.13
steps:
- checkout
- setup_remote_docker
- run: sudo apt-get install python-pip
- run: sudo pip install invoke semver pyyaml
- run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- run: mkdir -p ./bin
- run: wget -O ./bin/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64 && chmod +x ./bin/manifest-tool
- run: echo "export GO111MODULE=on" >>$BASH_ENV
- run: PATH=./bin:$PATH inv push-multiarch --binaries=controller --tag=${CIRCLE_BRANCH:-${CIRCLE_TAG}} --docker-user=metallb
deploy-speaker:
working_directory: /go/src/go.universe.tf/metallb
docker:
- image: circleci/golang:1.13
steps:
- checkout
- setup_remote_docker
- run: sudo apt-get install python-pip
- run: sudo pip install invoke semver pyyaml
- run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- run: mkdir -p ./bin
- run: wget -O ./bin/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64 && chmod +x ./bin/manifest-tool
- run: echo "export GO111MODULE=on" >>$BASH_ENV
- run: PATH=./bin:$PATH inv push-multiarch --binaries=speaker --tag=${CIRCLE_BRANCH:-${CIRCLE_TAG}} --docker-user=metallb
workflows:
version: 2
test-and-deploy:
jobs:
- test-1.13:
filters:
tags:
only: /.*/
- lint-1.13:
filters:
tags:
only: /.*/
- deploy-controller:
filters:
branches:
only:
- main
- /v.*/
tags:
only: /.*/
requires:
- test-1.13
- lint-1.13
- deploy-speaker:
filters:
branches:
only:
- main
- /v.*/
tags:
only: /.*/
requires:
- test-1.13
- lint-1.13