File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,17 @@ jobs:
25
25
run : sed -i.tmp -e "s#\${BUILD_VERSION}#${{ github.ref_name }}#" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py && rm run.py.tmp
26
26
shell : bash
27
27
28
-
29
- - name : run centos7
30
- run : |
31
- docker run -itd -v "$(pwd)":/tmp/DDNS --name centos7Instance --net="host" docker.io/centos:7 /bin/bash
32
- sudo yum -y install yum-utils swig gcc gcc-c++ kernel-devel
33
- yum-config-manager --add-repo http://download.opensuse.org/repositories/home:/kayhayen/CentOS_7/home:kayhayen.repo
34
- sudo yum -y install nuitka
35
- .build/nuitka.cmd
36
-
37
-
28
+ - name : Run the build process with Docker
29
+ uses : addnab/docker-run-action@v3
30
+ with :
31
+ image : docker.io/centos:7
32
+ options : -v "$(pwd)":/tmp/DDNS
33
+ run : |
34
+ yum-config-manager --add-repo http://download.opensuse.org/repositories/home:/kayhayen/CentOS_7/home:kayhayen.repo
35
+ sudo yum -y install swig gcc gcc-c++ kernel-devel nuitka python3
36
+ python3 .build/remove_python2.py
37
+ cd /tmp/DDNS
38
+ .build/nuitka.cmd
38
39
39
40
- run : ./dist/ddns || test -e config.json
40
41
- run : ./dist/ddns -h
You can’t perform that action at this time.
0 commit comments