File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
types :
7
7
- closed
8
+ branches :
9
+ - main
8
10
9
11
jobs :
10
12
build :
11
- runs-on : ubuntu-20.04
12
- strategy :
13
- matrix :
14
- python-version : ["3.10"]
13
+ runs-on : ubuntu-latest # this is just the host, but the job will run in the container
14
+ container : ubuntu:20.04
15
15
steps :
16
16
- name : Check out code into the directory
17
17
uses : actions/checkout@v3
18
- - name : Set up Python ${{ matrix.python-version }}
19
- uses : actions/setup-python@v3
20
- with :
21
- python-version : ${{ matrix.python-version }}
22
18
- name : Install dependencies
23
19
run : |
24
- python -m pip install --upgrade pip
20
+ # Install required dependencies inside the container
21
+ apt-get update
22
+ apt-get install -y python3 python3-pip python3-dev wget build-essential
23
+ python3 -m pip install --upgrade pip
25
24
pip install -r requirements.txt
26
25
- name : Use pyinstall to create distribution binary
27
26
run : pyinstaller -F router_upgrade_bootstrap.py --runtime-tmpdir /opt/netfoundry/
30
29
- name : version
31
30
run : echo "version=$(./dist/router_upgrade -v)" >> $GITHUB_ENV
32
31
id : version
33
-
32
+
34
33
- name : Tar bootstrap
35
34
# tar with previous distibuted name for backwards compatibility
36
35
run : cd dist; mv router_upgrade_bootstrap zt-upgrade; tar -zcvf router_upgrade_bootstrap.tar.gz zt-upgrade
You can’t perform that action at this time.
0 commit comments