Fixed wrong action workflow
Build and Push Alpine PHP Image / Build and push apache image (push) Has been cancelled Details
Build and Push Alpine PHP Image / Build and push image (push) Has been cancelled Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-13 04:36:02 +07:00
parent 9a4f52476c
commit fa5be19e64
5 changed files with 9 additions and 5 deletions

View File

@ -232,7 +232,7 @@ jobs:
push: true push: true
tags: | tags: |
aprimediet/php:8.3-apache-alpine aprimediet/php:8.3-apache-alpine
- name: Build and push 8.3 with Apache2 - name: Build and push 8.4 with Apache2
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .

View File

@ -127,6 +127,7 @@ jobs:
PHP_VERSION=84 PHP_VERSION=84
push: true push: true
tags: | tags: |
git.winteraccess.id/${{ gitea.repository }}:8-alpine
git.winteraccess.id/${{ gitea.repository }}:8.4-alpine git.winteraccess.id/${{ gitea.repository }}:8.4-alpine
build-apache: build-apache:
name: Build and push apache image name: Build and push apache image

View File

@ -8,12 +8,12 @@
# PHP 8.3 == 3.19 # PHP 8.3 == 3.19
# PHP 8.4 == 3.21 # PHP 8.4 == 3.21
ARG REGISTRY_URL=docker.io/aprimediet ARG REGISTRY_URL=docker.io/aprimediet
ARG ALPINE_VERSION=3.19 ARG ALPINE_VERSION=3.21
FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION} FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION}
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com" LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
ARG PHP_VERSION=83 ARG PHP_VERSION=84
ENV PHP_VERSION=${PHP_VERSION} ENV PHP_VERSION=${PHP_VERSION}
WORKDIR /root WORKDIR /root
@ -27,3 +27,5 @@ RUN ln -ns /usr/bin/php${PHP_VERSION} /usr/bin/php; exit 0
# CLEAN APK CACHES # CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/* RUN rm -vrf /var/cache/apk/*
CMD ["/usr/bin/php"]

View File

@ -1,4 +1,4 @@
ARG REGISTRY_URL=git.winteraccess.id/docker ARG REGISTRY_URL=docker.io/aprimediet
ARG PHP=8.3 ARG PHP=8.3
FROM ${REGISTRY_URL}/php:${PHP}-alpine FROM ${REGISTRY_URL}/php:${PHP}-alpine
@ -51,6 +51,7 @@ ADD ./scripts/apache-entrypoint-alpine /usr/local/bin/entrypoint
RUN chmod +x /usr/local/bin/entrypoint && \ RUN chmod +x /usr/local/bin/entrypoint && \
cp -vR /var/www/localhost/htdocs/* ${APP_DIR}/ && \ cp -vR /var/www/localhost/htdocs/* ${APP_DIR}/ && \
rm -vrf /var/www && \
chown -R apache:apache ${APP_DIR} chown -R apache:apache ${APP_DIR}
WORKDIR ${APP_DIR} WORKDIR ${APP_DIR}

View File

@ -4,7 +4,7 @@ ARG UBI_VERSION=9.5
FROM ${REGISTRY_URL}/ubi9:${UBI_VERSION} AS builder FROM ${REGISTRY_URL}/ubi9:${UBI_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com" LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
ARG PHP_VERSION=8.3 ARG PHP_VERSION=8.4
ENV PHP_VERSION=${PHP_VERSION} ENV PHP_VERSION=${PHP_VERSION}
USER root USER root