Skip to content

ci: run docker ci workflow on pull requests to main #8

ci: run docker ci workflow on pull requests to main

ci: run docker ci workflow on pull requests to main #8

Workflow file for this run

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