You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/package_trigger.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,25 @@ on:
4
4
workflow_dispatch:
5
5
6
6
jobs:
7
-
package-trigger-master:
7
+
package-trigger-3-13-php8:
8
8
runs-on: ubuntu-latest
9
9
steps:
10
10
- uses: actions/checkout@v2.3.3
11
11
12
12
- name: Package Trigger
13
-
if: github.ref == 'refs/heads/master'
13
+
if: github.ref == 'refs/heads/3.13-php8'
14
14
run: |
15
-
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_BASEIMAGE_ALPINE_NGINX_MASTER }}" ]; then
16
-
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_BASEIMAGE_ALPINE_NGINX_MASTER is set; skipping trigger. ****"
15
+
if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_BASEIMAGE_ALPINE_NGINX_3_13_PHP8 }}" ]; then
16
+
echo "**** Github secret PAUSE_PACKAGE_TRIGGER_BASEIMAGE_ALPINE_NGINX_3_13_PHP8 is set; skipping trigger. ****"
17
17
exit 0
18
18
fi
19
-
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-baseimage-alpine-nginx/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
19
+
if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-baseimage-alpine-nginx/job/3.13-php8/lastBuild/api/json | jq -r '.building') == "true" ]; then
20
20
echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****"
21
21
exit 0
22
22
fi
23
-
echo "**** Package trigger running off of master branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_BASEIMAGE_ALPINE_NGINX_MASTER\". ****"
23
+
echo "**** Package trigger running off of 3.13-php8 branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_BASEIMAGE_ALPINE_NGINX_3_13_PHP8\". ****"
sed -i "s#;error_log = log/php7/error.log.*#error_log = /config/log/php/error.log#g" /etc/php7/php-fpm.conf
24
+
sed -i "s#;error_log = log/php7/error.log.*#error_log = /config/log/php/error.log#g" /etc/php8/php-fpm.conf
25
25
#fix php-fpm user
26
-
sed -i "s#user = nobody.*#user = abc#g" /etc/php7/php-fpm.d/www.conf
27
-
sed -i "s#group = nobody.*#group = abc#g" /etc/php7/php-fpm.d/www.conf
26
+
sed -i "s#user = nobody.*#user = abc#g" /etc/php8/php-fpm.d/www.conf
27
+
sed -i "s#group = nobody.*#group = abc#g" /etc/php8/php-fpm.d/www.conf
28
28
# create override for www.conf if it doesn't exist
29
29
[[ ! -f /config/php/www2.conf ]] && \
30
30
printf "; Edit this file to override www.conf and php-fpm.conf directives and restart the container\\n\\n; Pool name\\n[www]\\n\\n" > /config/php/www2.conf
0 commit comments