diff --git a/php-8.1-pecl-http.yaml b/php-8.1-pecl-http.yaml index b81b38914f5..2fcb31c93f9 100644 --- a/php-8.1-pecl-http.yaml +++ b/php-8.1-pecl-http.yaml @@ -39,14 +39,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini + - uses: pecl/install + with: + extension: "http" - uses: strip diff --git a/php-8.1-pecl-pdosqlsrv.yaml b/php-8.1-pecl-pdosqlsrv.yaml index ec4a6768555..994c3c4fdb7 100644 --- a/php-8.1-pecl-pdosqlsrv.yaml +++ b/php-8.1-pecl-pdosqlsrv.yaml @@ -35,14 +35,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=pdo_sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/pdo_sqlsrv.ini + - uses: pecl/install + with: + extension: "pdo_sqlsrv" - uses: strip diff --git a/php-8.1-pecl-raphf.yaml b/php-8.1-pecl-raphf.yaml index 2222cfa2fa6..201c19bb8da 100644 --- a/php-8.1-pecl-raphf.yaml +++ b/php-8.1-pecl-raphf.yaml @@ -34,14 +34,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=raphf.so" > ${{targets.destdir}}/etc/php/conf.d/raphf.ini + - uses: pecl/install + with: + extension: "raphf" # PHP initialization is order dependent. So we will explicitly # load this by prefixing the file with 10- so it runs before diff --git a/php-8.1-pecl-sqlsrv.yaml b/php-8.1-pecl-sqlsrv.yaml index e35912133c9..cbd876fcf8d 100644 --- a/php-8.1-pecl-sqlsrv.yaml +++ b/php-8.1-pecl-sqlsrv.yaml @@ -35,14 +35,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/sqlsrv.ini + - uses: pecl/install + with: + extension: "sqlsrv" - uses: strip diff --git a/php-8.2-pecl-http.yaml b/php-8.2-pecl-http.yaml index 43beea7e39a..ad6ec43d25d 100644 --- a/php-8.2-pecl-http.yaml +++ b/php-8.2-pecl-http.yaml @@ -39,14 +39,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini + - uses: pecl/install + with: + extension: "http" - uses: strip diff --git a/php-8.2-pecl-pdosqlsrv.yaml b/php-8.2-pecl-pdosqlsrv.yaml index 11f2adb0625..de587ec9892 100644 --- a/php-8.2-pecl-pdosqlsrv.yaml +++ b/php-8.2-pecl-pdosqlsrv.yaml @@ -35,14 +35,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=pdo_sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/pdo_sqlsrv.ini + - uses: pecl/install + with: + extension: "pdo_sqlsrv" - uses: strip diff --git a/php-8.2-pecl-raphf.yaml b/php-8.2-pecl-raphf.yaml index 1431f7dcfd0..02b6c7fe2be 100644 --- a/php-8.2-pecl-raphf.yaml +++ b/php-8.2-pecl-raphf.yaml @@ -34,14 +34,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=raphf.so" > ${{targets.destdir}}/etc/php/conf.d/raphf.ini + - uses: pecl/install + with: + extension: "raphf" # PHP initialization is order dependent. So we will explicitly # load this by prefixing the file with 10- so it runs before diff --git a/php-8.2-pecl-sqlsrv.yaml b/php-8.2-pecl-sqlsrv.yaml index e68109cfb1e..b6a8496389a 100644 --- a/php-8.2-pecl-sqlsrv.yaml +++ b/php-8.2-pecl-sqlsrv.yaml @@ -35,14 +35,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/sqlsrv.ini + - uses: pecl/install + with: + extension: "sqlsrv" - uses: strip diff --git a/php-8.3-pecl-http.yaml b/php-8.3-pecl-http.yaml index 1a8289592aa..d81a8749934 100644 --- a/php-8.3-pecl-http.yaml +++ b/php-8.3-pecl-http.yaml @@ -39,14 +39,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini + - uses: pecl/install + with: + extension: "http" - uses: strip diff --git a/php-8.3-pecl-pdosqlsrv.yaml b/php-8.3-pecl-pdosqlsrv.yaml index c9d6188bbd6..4bb2d538768 100644 --- a/php-8.3-pecl-pdosqlsrv.yaml +++ b/php-8.3-pecl-pdosqlsrv.yaml @@ -35,14 +35,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=pdo_sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/pdo_sqlsrv.ini + - uses: pecl/install + with: + extension: "pdo_sqlsrv" - uses: strip diff --git a/php-8.3-pecl-raphf.yaml b/php-8.3-pecl-raphf.yaml index 75a6dddcafa..744e590c045 100644 --- a/php-8.3-pecl-raphf.yaml +++ b/php-8.3-pecl-raphf.yaml @@ -34,14 +34,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=raphf.so" > ${{targets.destdir}}/etc/php/conf.d/raphf.ini + - uses: pecl/install + with: + extension: "raphf" # PHP initialization is order dependent. So we will explicitly # load this by prefixing the file with 10- so it runs before diff --git a/php-8.3-pecl-sqlsrv.yaml b/php-8.3-pecl-sqlsrv.yaml index 56c0eecca51..2be2606215e 100644 --- a/php-8.3-pecl-sqlsrv.yaml +++ b/php-8.3-pecl-sqlsrv.yaml @@ -35,14 +35,9 @@ pipeline: - uses: autoconf/make - # TODO: This is a temporary workaround until the pecl/install pipelines - # propagates through. - # https://github.com/chainguard-dev/melange/pull/1068 - - name: Install - runs: | - make INSTALL_ROOT="${{targets.destdir}}" install - install -d ${{targets.destdir}}/etc/php/conf.d - echo "extension=sqlsrv.so" > ${{targets.destdir}}/etc/php/conf.d/sqlsrv.ini + - uses: pecl/install + with: + extension: "sqlsrv" - uses: strip