File tree Expand file tree Collapse file tree 5 files changed +32
-8
lines changed Expand file tree Collapse file tree 5 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 66on :
77 # Triggers the workflow on push or pull request events but only for the main branch
88 push :
9- branches : [ main ]
9+ branches : [ frog ]
1010 pull_request :
1111 paths :
1212 - scripts/*.sh
1919 # This workflow contains a single job called "build"
2020 build :
2121 # The type of runner that the job will run on
22- runs-on : ubuntu -latest
22+ runs-on : alpine -latest
2323
2424 # Steps represent a sequence of tasks that will be executed as part of the job
2525 steps :
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ name: Test modified scripts
33on :
44 push :
55 branches :
6- - main
6+ - frog
77 pull_request :
88 branches :
9- - main
9+ - frog
1010
1111jobs :
1212 run-test-scripts :
13- runs-on : ubuntu -latest
13+ runs-on : alpine -latest
1414 steps :
1515 - name : Checkout generator repository
1616 uses : actions/checkout@v1
2020 run : |
2121 chmod +x tests/execute_new_and_modified_scripts.sh
2222 sudo tests/execute_new_and_modified_scripts.sh
23- exit $?
23+ exit $?
Original file line number Diff line number Diff line change 66on :
77 # Triggers the workflow on push or pull request events but only for the main branch
88 push :
9- branches : [ main ]
9+ branches : [ frog ]
1010 pull_request :
1111 paths :
1212 - scripts/*.sh
1919 # This workflow contains a single job called "build"
2020 build :
2121 # The type of runner that the job will run on
22- runs-on : ubuntu -latest
22+ runs-on : alpine -latest
2323
2424 # Steps represent a sequence of tasks that will be executed as part of the job
2525 steps :
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ apk update
3+ apk add apache2 apache2-utils php83-apache2 php83-mysqli php83-bcmath php83-simplexml php83-zip php83-pear php83-xml php83-curl php83-mbstring php83-pdo_mysql php83-pdo
4+ rc-update add apache2
5+
6+ chown -R frog:frog /var/www/html
7+
8+ sed -i ' s@localhost/htdocs@html@' /etc/apache2/httpd.conf
9+ sed -i ' s@AllowOverride.*@AllowOverride all@' /etc/apache2/httpd.conf
10+ sed -i " s@StartServers.*@StartServers\t1@" /etc/apache2/conf.d/mpm.conf
11+ sed -i " s@MaxSpareServers.*@MaxSpareServers\t3@" /etc/apache2/conf.d/mpm.conf
12+ sed -i " s@MinSpareServers.*@MinSpareServers\t1@" /etc/apache2/conf.d/mpm.conf
13+ sed -i " s@MaxRequestWorkers.*@MaxRequestWorkers\t10@" /etc/apache2/conf.d/mpm.conf
14+ sed -i " s@MaxConnectionsPerChild.*@MaxConnectionsPerChild\t50@" /etc/apache2/conf.d/mpm.conf
15+
16+ service apache2 start
17+ echo -e " \n\nPliki strony wrzuc do /var/www/html\n\n"
18+ cat /root/mysql.txt
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ apk add docker
3+ rc-update add docker
4+ service docker start
5+ sleep 3
6+ docker run hello-world
You can’t perform that action at this time.
0 commit comments