Skip to content

Build Auxiliary Images #137

Build Auxiliary Images

Build Auxiliary Images #137

name: Build Auxiliary Images
on:
# push:
# branches: [ main ]
workflow_dispatch:
schedule:
- cron: '0 18 * * 6'
jobs:
build_and_push_php:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push ${{ matrix.version }}-cli-supervisor
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-supervisor
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-supervisor
- name: Build and push ${{ matrix.version }}-cli-alpine-supervisor
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-supervisor
file: ./auxiliary/${{ matrix.version }}-cli-supervisor/Dockerfile-alpine
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-alpine-supervisor
- name: Build and push ${{ matrix.version }}-cli-cron
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-cron
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-cron
- name: Build and push ${{ matrix.version }}-cli-alpine-cron
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-cron
file: ./auxiliary/${{ matrix.version }}-cli-cron/Dockerfile-alpine
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-alpine-cron