Skip to content

Commit

Permalink
replace public github apps with native bash scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 13, 2026
1 parent e298372 commit 764fbc4
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/registry-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,45 @@ jobs:

steps:
- name: Checkout (only for workflow files)
uses: actions/checkout@v4

- name: Setup PHP (recommended approach)
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
extensions: >
mbstring, json, openssl, intl, ldap, xml, zlib, sodium,
pdo, pdo_mysql, pdo_pgsql, gd, xsl, memcached, pcntl, posix
shell: bash
run: |
set -euxo pipefail
git clone \
--depth=1 \
--branch "${GITHUB_REF_NAME}" \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" \
"${GITHUB_WORKSPACE}"
- name: Install PHP ${{ matrix.php }} and extensions
shell: bash
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
software-properties-common ca-certificates gnupg
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
PHP_VER="${{ matrix.php }}"
sudo apt-get install -y --no-install-recommends \
php${PHP_VER}-cli \
php${PHP_VER}-mbstring \
php${PHP_VER}-json \
php${PHP_VER}-openssl \
php${PHP_VER}-intl \
php${PHP_VER}-ldap \
php${PHP_VER}-xml \
php${PHP_VER}-zip \
php${PHP_VER}-sodium \
php${PHP_VER}-pdo \
php${PHP_VER}-mysql \
php${PHP_VER}-pgsql \
php${PHP_VER}-gd \
php${PHP_VER}-xsl \
php${PHP_VER}-memcached \
php${PHP_VER}-pcntl \
php${PHP_VER}-posix \
php${PHP_VER}-curl
sudo update-alternatives --set php /usr/bin/php${PHP_VER}
- name: Compute COMANAGE_REGISTRY_SRC_URL
shell: bash
Expand Down

0 comments on commit 764fbc4

Please sign in to comment.