-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.28 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
name: docker_logdna CI
on: [push]
jobs:
test:
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup update
- name: Build and Test Plugin
run: |
if docker plugin ls | grep logdna:latest; then
docker plugin disable -f logdna:latest || true
docker plugin remove -f logdna:latest || true
fi
mkdir ./plugin/rootfs
docker build -t rootfsimage .
docker export $(docker create rootfsimage true) | tar -x -C ./plugin/rootfs
docker plugin create logdna ./plugin
rm -r ./plugin/rootfs
docker plugin enable logdna
- name: Build Mock Client
run: |
cd $GITHUB_WORKSPACE/mock/client
docker build -t mock_client -f Dockerfile ..
- name: Build Mock Server
run: |
source "$HOME/.cargo/env"
cd $GITHUB_WORKSPACE/mock/server
cargo build
- name: Build Dind Test Driver
run: |
source "$HOME/.cargo/env"
cd $GITHUB_WORKSPACE/dind_test_driver
cargo build