From 9b975fe91ac5cbf7a62c39fe589812d863b64417 Mon Sep 17 00:00:00 2001 From: Muhamad Aditya Prima Date: Mon, 16 Dec 2024 17:21:55 +0700 Subject: [PATCH] Fixed php 5 action workflows --- .gitea/workflows/{master.yaml => php5.yaml} | 6 +++--- Dockerfile.alpine => 5/Dockerfile.alpine | 16 ++++------------ 2 files changed, 7 insertions(+), 15 deletions(-) rename .gitea/workflows/{master.yaml => php5.yaml} (93%) rename Dockerfile.alpine => 5/Dockerfile.alpine (81%) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/php5.yaml similarity index 93% rename from .gitea/workflows/master.yaml rename to .gitea/workflows/php5.yaml index 75ac9f2..daf32ce 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/php5.yaml @@ -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 }} diff --git a/Dockerfile.alpine b/5/Dockerfile.alpine similarity index 81% rename from Dockerfile.alpine rename to 5/Dockerfile.alpine index 4512638..b59da68 100644 --- a/Dockerfile.alpine +++ b/5/Dockerfile.alpine @@ -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=" 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