-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 1.7 KB
/
ci.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
name: ci
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout traffic-reproducer
uses: actions/checkout@v4
with:
path: traffic-reproducer
submodules: recursive
- name: Build traffic-reproducer container
shell: bash
run: |
cd traffic-reproducer
docker build -t traffic-reproducer:latest -f docker/Dockerfile .
- name: Save image as artifact
shell: bash
run: |
mkdir -p /tmp/docker/
docker save -o /tmp/docker/traffic_reproducer_docker_image.tar traffic-reproducer:latest
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
retention-days: 7
name: traffic_reproducer_docker_image
path: /tmp/docker
# TODO idea: send all messages from all examples and then do some basic check on collector logs / print files (no warnings, no error, line counts, etc...)
regression-tests:
runs-on: ubuntu-latest
needs: docker-build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: '*_docker_images'
path: /tmp/docker
- name: Import images in the local registry
run: |
ls -la /tmp/docker
docker load -i /tmp/docker/traffic_reproducer_docker_image/traffic_reproducer_docker_image.tar
echo "List Images"
docker images | grep 'traffic-reproducer'
- name: Run traffic-reproducer container
run: |
docker run --rm --name traffic-reproducer traffic-reproducer:latest