Fixed php 5 action workflows
Build and push PHP 5 container images / Build PHP 5 container images (cli, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Successful in 54s Details
Build and push PHP 5 container images / Build PHP 5 container images (full, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details
Build and push PHP 5 container images / Build PHP 5 container images (debug, map[os:alpine os_version:3.5 php_ver_short:5 php_version:5.6]) (push) Has been cancelled Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-16 17:21:55 +07:00
parent 491b081124
commit 9b975fe91a
2 changed files with 7 additions and 15 deletions

View File

@ -1,4 +1,4 @@
name: Build and push Nginx on alpine based container images
name: Build and push PHP 5 container images
on:
push:
@ -7,7 +7,7 @@ on:
jobs:
build:
name: Build nginx container images
name: Build PHP 5 container images
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
@ -37,7 +37,7 @@ jobs:
with:
push: true
context: .
file: Dockerfile.${{ matrix.version.os }}
file: 5/Dockerfile.${{ matrix.version.os }}
build-args: |
OS_VERSION=${{ matrix.version.os_version }}
PHP_VERSION=${{ matrix.version.php_version }}

View File

@ -1,13 +1,5 @@
# PHP 5.6 == 3.5
# PHP 7.2 == 3.9
# PHP 7.3 == 3.10
# PHP 7.4 == 3.13
# PHP 8 == 3.16
# PHP 8.1 == 3.18
# PHP 8.2 == 3.18
# PHP 8.3 == 3.19
# PHP 8.4 == 3.21
ARG OS_VERSION=3.21
ARG OS_VERSION=3.5
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
@ -22,15 +14,15 @@ ENV PHP_VER_SHORT=${PHP_VER_SHORT}
WORKDIR /root
ADD 5/scripts/alpine-setup.sh /tmp/5-setup.sh
ADD 5/scripts/alpine-setup.sh /tmp/setup.sh
# Create directory, and install required php app
RUN /bin/mkdir -p /app ; \
/sbin/apk add --update --no-cache \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli ; \
/bin/chmod +x /tmp/${PHP_VER_SHORT}-setup.sh; \
/bin/sh /tmp/${PHP_VER_SHORT}-setup.sh; \
/bin/chmod +x /tmp/setup.sh; \
/bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh;
# Create symlinks to /usr/bin/php in case it doesn't exists