Skip to content

Commit

Permalink
remove extra GitHub Actions steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamdeew committed Oct 17, 2022
1 parent 30fb6c8 commit c6b2e5c
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
- name: Stop containers
run: make st


- name: Build the stack PHP-8 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-php-8 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp templates/docker-compose-php-8.yml docker-compose.yml && make upb
- name: Test PHP-FPM
Expand All @@ -51,6 +52,7 @@ jobs:
- name: Stop containers
run: make st


- name: Build the stack PHP-74 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-php-74 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp templates/docker-compose-php-74.yml docker-compose.yml && make upb
- name: Test PHP-FPM
Expand All @@ -60,35 +62,6 @@ jobs:
- name: Stop containers
run: make st

- name: Build the stack PHP-73 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-php-73 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp templates/docker-compose-php-73.yml docker-compose.yml && make upb
- name: Test PHP-FPM
run: docker run --network container:docker-compose-php_nginx_1 mikesplain/telnet php-73 9000
- name: Test Nginx localhost
run: docker run --network container:docker-compose-php_nginx_1 appropriate/curl -s --retry 1 --retry-connrefused http://super:demo@localhost/ | grep '7.3'
- name: Stop containers
run: make st


- name: Build the stack PHP-72 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-php-72 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp templates/docker-compose-php-72.yml docker-compose.yml && make upb
- name: Test PHP-FPM
run: docker run --network container:docker-compose-php_nginx_1 mikesplain/telnet php-72 9000
- name: Test Nginx localhost
run: docker run --network container:docker-compose-php_nginx_1 appropriate/curl -s --retry 1 --retry-connrefused http://super:demo@localhost/ | grep '7.2'
- name: Stop containers
run: make st


- name: Build the stack PHP-71 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-php-71 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp templates/docker-compose-php-71.yml docker-compose.yml && make upb
- name: Test PHP-FPM
run: docker run --network container:docker-compose-php_nginx_1 mikesplain/telnet php-71 9000
- name: Test Nginx localhost
run: docker run --network container:docker-compose-php_nginx_1 appropriate/curl -s --retry 1 --retry-connrefused http://super:demo@localhost/ | grep '7.1'
- name: Stop containers
run: make st


- name: Build the stack Apache PHP-81 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-apache-php-81 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp docker/apache-php-81/config/templates/site.test.conf docker/apache-php-81/config/sites-enabled/default.conf && sed -i 's/ServerName site.test/ /g' docker/apache-php-81/config/sites-enabled/default.conf && cp templates/docker-compose-apache-php-81.yml docker-compose.yml && make upb
Expand All @@ -106,14 +79,6 @@ jobs:
run: make st


- name: Build the stack Apache PHP-71 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-apache-php-71 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp docker/apache-php-71/config/templates/site.test.conf docker/apache-php-71/config/sites-enabled/default.conf && sed -i 's/ServerName site.test/ /g' docker/apache-php-71/config/sites-enabled/default.conf && cp templates/docker-compose-apache-php-71.yml docker-compose.yml && make upb
- name: Test Nginx localhost
run: docker run --network container:docker-compose-php_nginx_1 appropriate/curl -s --retry 1 --retry-connrefused http://super:demo@localhost/ | grep '7.1'
- name: Stop containers
run: make st


- name: Build the stack Apache PHP-56 and hack with default.conf
run: cp mysql.env.example mysql.env && cp docker/nginx/config/templates/site.test.conf-apache-php-56 docker/nginx/config/default.conf && sed -i 's/server_name site.test/server_name _/g' docker/nginx/config/default.conf && cp docker/apache-php-56/config/templates/site.test.conf docker/apache-php-56/config/sites-enabled/default.conf && sed -i 's/ServerName site.test/ /g' docker/apache-php-56/config/sites-enabled/default.conf && cp templates/docker-compose-apache-php-56.yml docker-compose.yml && make upb
- name: Test Nginx localhost
Expand Down

0 comments on commit c6b2e5c

Please sign in to comment.