File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 16
16
openstack :
17
17
name : openstack-ci
18
18
concurrency : ${{ github.ref }}-{{ matrix.os_version }} # to branch/PR + OS
19
- runs-on : ubuntu-20 .04
19
+ runs-on : ubuntu-22 .04
20
20
strategy :
21
21
matrix :
22
22
os_version : [RL8, RL9]
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ It is recommended to check the following before starting:
27
27
28
28
## Installation on deployment host
29
29
30
+ Current Operating Systems supported to be deploy hosts:
31
+
32
+ - Rocky Linux 9
33
+ - Rocky Linux 8
34
+ - Ubuntu 22.04
35
+
30
36
These instructions assume the deployment host is running Rocky Linux 8:
31
37
32
38
sudo yum install -y git python38
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ if [[ -f /etc/os-release ]]; then
6
+ . /etc/os-release
7
+ OS=$ID
8
+ OS_VERSION=$VERSION_ID
9
+ else
10
+ exit 1
11
+ fi
12
+
13
+ MAJOR_VERSION=$( echo $OS_VERSION | cut -d. -f1)
14
+
15
+ PYTHON_VERSION=" "
16
+
17
+ if [[ " $OS " == " ubuntu" && " $MAJOR_VERSION " == " 22" ]]; then
18
+ PYTHON_VERSION=" /usr/bin/python3.10"
19
+ elif [[ " $OS " == " rocky" && " $MAJOR_VERSION " == " 8" ]]; then
20
+ PYTHON_VERSION=" /usr/bin/python3.8" # use `sudo yum install python38` on Rocky Linux 8 to install this
21
+ elif [[ " $OS " == " rocky" && " $MAJOR_VERSION " == " 9" ]]; then
22
+ PYTHON_VERSION=" /usr/bin/python3.9"
23
+ else
24
+ echo " Unsupported OS version: $OS $MAJOR_VERSION "
25
+ exit 1
26
+ fi
27
+
5
28
if [[ ! -d " venv" ]]; then
6
- /usr/bin/python3.8 -m venv venv # use `sudo yum install python38` on Rocky Linux 8 to install this
29
+ $PYTHON_VERSION -m venv venv
7
30
fi
31
+
8
32
. venv/bin/activate
9
33
pip install -U pip
10
34
pip install -r requirements.txt
You can’t perform that action at this time.
0 commit comments