Added Alpine 8.3
Build and Push Ubuntu PHP 5.6 Image / Build and push image (push) Successful in 1m58s Details
Build and Push Ubuntu PHP 7.3 Image / Build and push image (push) Successful in 1m55s Details
Build and Push Ubuntu PHP 7.2 Image / Build and push image (push) Successful in 4m0s Details
Build and Push Ubuntu PHP 7.4 Image / Build and push image (push) Successful in 1m52s Details
Build and Push Ubuntu PHP 8.0 Image / Build and push image (push) Successful in 3m10s Details
Build and Push Ubuntu PHP 8.1 Image / Build and push image (push) Successful in 1m44s Details
Build and Push Ubuntu PHP 8.3 Image / Build and push image (push) Successful in 1m51s Details
Build and Push Ubuntu PHP 8.2 Image / Build and push image (push) Successful in 3m19s Details
Build and Push Alpine PHP 8.3 Image / Build and push image (push) Failing after 14s Details

This commit is contained in:
Aditya Prima 2024-03-23 18:50:39 +07:00
parent ec955775d6
commit 752637a4ab
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,33 @@
name: Build and Push Alpine PHP 8.3 Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Git Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
build-args: |
ALPINE_VERSION=3.19
PHP_VERSION=83
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:latest-alpine
git.winteraccess.id/${{ gitea.repository }}:8.3-alpine

View File

@ -0,0 +1,33 @@
# 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
ARG REGISTRY_URL=aprimediet
ARG ALPINE_VERSION=3.19
FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION}
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
ARG PHP_VERSION=83
ENV PHP_VERSION=${PHP_VERSION}
WORKDIR /root
# INSTALL PHP APP
RUN apk add --update php${PHP_VERSION} php${PHP_VERSION}-common
# CREATE SYMLINKS TO /usr/bin/php IN CASE IT IS NOT EXISTS
RUN ln -ns /usr/bin/php${PHP_VERSION} /usr/bin/php; exit 0
# DOWNLOAD AND INSTALL COMPOSER
# ADD https://getcomposer.org/installer ./composer-setup.php
# RUN php composer-setup.php && mv composer.phar /usr/local/bin/composer && rm -f ./composer-setup.php
# # CHANGE USER PERMISSION ON /etc/services.d
# RUN chmod -R +x /etc/services.d/php-fpm/*
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*