-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (41 loc) · 1.22 KB
/
docker.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
name: Docker CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
# Needed for cargo-make
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo make
run: cargo install cargo-make
- name: get Sysbox
run: wget https://downloads.nestybox.com/sysbox/releases/v0.6.1/sysbox-ce_0.6.1-0.linux_amd64.deb
- name: Install Sysbox
run: sudo apt-get install ./sysbox-ce_0.6.1-0.linux_amd64.deb
- name: Configure Sysbox runtime
run: sudo cp sysbox/daemon.json /etc/docker/daemon.json
- name: Restart docker service
run: sudo systemctl restart docker.service
- name: Build docker
run: cargo make docker-build
- name: Run docker
run: cargo make docker-run
- name: Allow Docker image to boot up
uses: juliangruber/sleep-action@v1
with:
time: 120s
# Needed to run tests
- name: Install npm dependencies
run: cargo make deps-npm
- name: Test
run: cargo make test-app
- name: Show logs
run: cargo make docker-log