Add ability to use ubuntu base images. #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
basic: | |
strategy: | |
matrix: | |
image: | |
# Default fedora base image | |
- url: "" | |
base: "" | |
# Ubuntu base image | |
- url: ubuntu:rolling | |
base: ubuntu | |
env: | |
RUNC_CMD: podman | |
OVN_SRC_PATH: ovn_git | |
OVS_SRC_PATH: ovn_git/ovs | |
# https://github.com/actions/runner-images/issues/6282 | |
XDG_RUNTIME_DIR: '' | |
OS_IMAGE: ${{ matrix.image.url }} | |
OS_BASE: ${{ matrix.image.base }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download ovn-fake-multinode | |
uses: actions/checkout@v3 | |
- name: Download OVN main | |
uses: actions/checkout@v3 | |
with: | |
repository: ovn-org/ovn | |
path: ovn_git | |
fetch-depth: 1 | |
submodules: true | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install podman openvswitch-switch | |
- name: Build images | |
run: sudo -E ./ovn_cluster.sh build | |
- name: Start basic cluster | |
run: sudo -E ./ovn_cluster.sh start | |
- name: Run basic test script | |
run: sudo ./.ci/test_basic.sh | |
- name: Stop cluster | |
run: sudo -E ./ovn_cluster.sh stop |