162 lines
4.3 KiB
YAML
162 lines
4.3 KiB
YAML
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
|
|
needs:
|
|
- build
|
|
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
|