images/actions/php/Dockerfile aktualisiert
Some checks failed
CI / build_php (8.1) (push) Blocked by required conditions
CI / build_php (8.2) (push) Blocked by required conditions
CI / build_java (17) (push) Blocked by required conditions
CI / build_java (1_8_0) (push) Blocked by required conditions
CI / build_java (21) (push) Blocked by required conditions
CI / build_act (push) Has been cancelled
Some checks failed
CI / build_php (8.1) (push) Blocked by required conditions
CI / build_php (8.2) (push) Blocked by required conditions
CI / build_java (17) (push) Blocked by required conditions
CI / build_java (1_8_0) (push) Blocked by required conditions
CI / build_java (21) (push) Blocked by required conditions
CI / build_act (push) Has been cancelled
This commit is contained in:
parent
7379f36535
commit
e31e964fc6
1 changed files with 2 additions and 17 deletions
|
@ -3,20 +3,5 @@ FROM git.euph.dev/actions/runner-basic:latest
|
||||||
ARG PACKAGE_VERSION
|
ARG PACKAGE_VERSION
|
||||||
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
||||||
|
|
||||||
RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/devel:languages:php.repo
|
RUN apk add --no-cache \
|
||||||
RUN sudo zypper -n --gpg-auto-import-keys refresh
|
php${PACKAGE_VERSION} composer
|
||||||
RUN sudo zypper -n update
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
major_version=$(echo ${PACKAGE_VERSION} | cut -d. -f1) && \
|
|
||||||
minor_version=$(echo ${PACKAGE_VERSION} | cut -d. -f2) && \
|
|
||||||
sudo zypper -n addlock "php${major_version} < ${major_version}.${minor_version}"; \
|
|
||||||
version_upper_bound="${major_version}.$((minor_version + 1))" && \
|
|
||||||
sudo zypper -n addlock "php${major_version} >= ${version_upper_bound}" && \
|
|
||||||
sudo zypper -n install "php${major_version}"
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
|
||||||
php composer-setup.php && \
|
|
||||||
php -r "unlink('composer-setup.php')" && \
|
|
||||||
sudo mv composer.phar /usr/local/bin/composer
|
|
Loading…
Reference in a new issue