php/.gitea/workflows/alpine-dockerio.yaml

252 lines
7.0 KiB
YAML

name: Build and Push Alpine PHP 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 Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push 5.6
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.5
PHP_VERSION=5
push: true
tags: |
aprimediet/php:5.6-alpine
aprimediet/php:5-alpine
- name: Build and push 7.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.9
PHP_VERSION=7
push: true
tags: |
aprimediet/php:7.2-alpine
- name: Build and push 7.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.10
PHP_VERSION=7
push: true
tags: |
aprimediet/php:7.3-alpine
- name: Build and push 7.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.13
PHP_VERSION=7
push: true
tags: |
aprimediet/php:7.4-alpine
aprimediet/php:7-alpine
- name: Build and push 8.0
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.16
PHP_VERSION=8
push: true
tags: |
aprimediet/php:8.0-alpine
- name: Build and push 8.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.18
PHP_VERSION=81
push: true
tags: |
aprimediet/php:8.1-alpine
- name: Build and push 8.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.18
PHP_VERSION=82
push: true
tags: |
aprimediet/php:8.2-alpine
- name: Build and push 8.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.19
PHP_VERSION=83
push: true
tags: |
aprimediet/php:8.3-alpine
- name: Build and push 8.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
ALPINE_VERSION=3.21
PHP_VERSION=84
push: true
tags: |
aprimediet/php:8.4-alpine
aprimediet/php:8-alpine
aprimediet/php:alpine
build-apache:
name: Build and push apache 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 Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push 5.6 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.5
PHP_VERSION=5
PHP=5.6
push: true
tags: |
aprimediet/php:5.6-apache-alpine
aprimediet/php:5-apache-alpine
- name: Build and push 7.2 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.9
PHP_VERSION=7
PHP=7.2
push: true
tags: |
aprimediet/php:7.2-apache-alpine
- name: Build and push 7.3 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.10
PHP_VERSION=7
PHP=7.3
push: true
tags: |
aprimediet/php:7.3-apache-alpine
- name: Build and push 7.4 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.13
PHP_VERSION=7
PHP=7.4
push: true
tags: |
aprimediet/php:7.4-apache-alpine
aprimediet/php:7-apache-alpine
- name: Build and push 8.0 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.16
PHP_VERSION=8
PHP=8.0
push: true
tags: |
aprimediet/php:8.0-apache-alpine
- name: Build and push 8.1 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.18
PHP_VERSION=81
PHP=8.1
push: true
tags: |
aprimediet/php:8.1-apache-alpine
- name: Build and push 8.2 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.18
PHP_VERSION=82
PHP=8.2
push: true
tags: |
aprimediet/php:8.2-apache-alpine
- name: Build and push 8.3 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.19
PHP_VERSION=83
PHP=8.3
push: true
tags: |
aprimediet/php:8.3-apache-alpine
- name: Build and push 8.4 with Apache2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-apache
build-args: |
ALPINE_VERSION=3.21
PHP_VERSION=84
PHP=8.4
push: true
tags: |
aprimediet/php:8.4-apache-alpine
aprimediet/php:8-apache-alpine
aprimediet/php:apache-alpine