Added workflows for ubi9 base image
Build and Push Alpine PHP Image / Build and push image (push) Successful in 44s Details
Build and Push Alpine PHP Image / Build and push apache image (push) Successful in 49s Details
Build and Push ubi9 PHP Image / Build and push ubi9 image (push) Failing after 45s Details
Build and Push ubi9 PHP Image / Build and push ubi9-micro image (push) Failing after 18s Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-13 13:37:16 +07:00
parent 88776c965c
commit d1afb495da
4 changed files with 167 additions and 6 deletions

View File

@ -0,0 +1,159 @@
name: Build and Push ubi9 PHP Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push ubi9 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 Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push 7.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9
build-args: |
PHP_VERSION=7.4
push: true
tags: |
aprimediet/php:7.4-ubi9
- name: Build and push 8.0
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9
build-args: |
PHP_VERSION=8.0
push: true
tags: |
aprimediet/php:8.0-ubi9
- name: Build and push 8.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9
build-args: |
PHP_VERSION=8.1
push: true
tags: |
aprimediet/php:8.1-ubi9
- name: Build and push 8.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9
build-args: |
PHP_VERSION=8.2
push: true
tags: |
aprimediet/php:8.2-ubi9
- name: Build and push 8.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9
build-args: |
PHP_VERSION=8.3
push: true
tags: |
aprimediet/php:8.3-ubi9
- name: Build and push 8.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9
build-args: |
PHP_VERSION=8.4
push: true
tags: |
aprimediet/php:8.4-ubi9
aprimediet/php:8-ubi9
aprimediet/php:ubi9
build-micro:
name: Build and push ubi9-micro 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 Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push 7.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9-micro
build-args: |
PHP_VERSION=7.4
push: true
tags: |
aprimediet/php:7.4-ubi9-micro
- name: Build and push 8.0
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9-micro
build-args: |
PHP_VERSION=8.0
push: true
tags: |
aprimediet/php:8.0-ubi9-micro
- name: Build and push 8.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9-micro
build-args: |
PHP_VERSION=8.1
push: true
tags: |
aprimediet/php:8.1-ubi9-micro
- name: Build and push 8.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9-micro
build-args: |
PHP_VERSION=8.2
push: true
tags: |
aprimediet/php:8.2-ubi9-micro
- name: Build and push 8.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9-micro
build-args: |
PHP_VERSION=8.3
push: true
tags: |
aprimediet/php:8.3-ubi9-micro
- name: Build and push 8.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubi9-micro
build-args: |
PHP_VERSION=8.4
push: true
tags: |
aprimediet/php:8.4-ubi9-micro
aprimediet/php:8-ubi9-micro
aprimediet/php:ubi9-micro

View File

@ -47,7 +47,7 @@ RUN sed -i "s|ServerRoot /var/www|ServerRoot ${SERVER_ROOT}|" /etc/apache2/httpd
sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf
# ADD INITIALIZATION SCRIPT # ADD INITIALIZATION SCRIPT
ADD ./scripts/apache-entrypoint-alpine /usr/local/bin/entrypoint ADD ./scripts/entrypoint /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}/ && \

View File

@ -1,5 +0,0 @@
#!/bin/sh
echo "RUNNING APACHE2"
httpd -D FOREGROUND

7
scripts/entrypoint Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
echo "##########################"
echo "# Apache2 is starting up #"
echo "##########################"
httpd -D FOREGROUND