-
Notifications
You must be signed in to change notification settings - Fork 200
161 lines (155 loc) · 4.45 KB
/
build.yaml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: build
on:
merge_group:
pull_request:
branches:
- main
- stable
jobs:
build-autoscaler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Autoscaler Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: autoscaler:pr-${{ github.event.number }}
build-args: SERVICE_NAME=autoscaler
build-scheduler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Scheduler Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: scheduler:pr-${{ github.event.number }}
build-args: SERVICE_NAME=scheduler
build-and-test-instrumentor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-go@v5
with:
go-version: "1.22.0"
- name: Build Instrumentor Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: instrumentor:pr-${{ github.event.number }}
build-args: SERVICE_NAME=instrumentor
- name: run tests
working-directory: ./instrumentor
run: |
make test
build-and-test-odigos-collector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build Odigos Collector Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: odigos-collector:pr-${{ github.event.number }}
context: ./collector
file: collector/Dockerfile
- name: run tests
working-directory: ./collector
run: |
make test
build-and-test-odiglet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build Odiglet Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
file: odiglet/Dockerfile
context: .
push: false
tags: odiglet:pr-${{ github.event.number }}
- name: Install build dependencies
run: |
sudo apt-get update && sudo apt-get install -y clang llvm libbpf-dev
- name: run tests
working-directory: ./odiglet
run: |
make test
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Frontend Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
file: frontend/Dockerfile
context: .
push: false
tags: frontend:pr-${{ github.event.number }}
build-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22.0"
- name: Set up Goreleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: build --snapshot --clean
test-k8sutils:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.0"
- name: Test k8sutils module
working-directory: ./k8sutils
run: |
go test -v ./...
test-common:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.0"
- name: Test common module
working-directory: ./common
run: |
make test
test-procdiscovery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22.0"
- name: Test procdiscovery module
working-directory: ./procdiscovery
run: |
go test -v ./...