Skip to content

Upgraded PHP 8.2.17 -> 8.2.22. #29

Upgraded PHP 8.2.17 -> 8.2.22.

Upgraded PHP 8.2.17 -> 8.2.22. #29

Workflow file for this run

name: Build Docker image
on:
push:
workflow_dispatch:
env:
registry: ghcr.io
jobs:
Build_image:
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
matrix:
distro:
- Alpine
- Debian
steps:
- uses: actions/checkout@v3
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Declare image name
run: image=${GITHUB_REPOSITORY,,} && <<<image=${image%-*} tee -a "$GITHUB_ENV"
- name: Build Docker image (${{ matrix.distro }})
run: docker build --tag ${tag=${{ env.registry }}/${{ env.image }}:${distro,,}} - <$distro.Dockerfile
&& <<<tag=$tag tee -a "$GITHUB_ENV"
env:
distro: ${{ matrix.distro }}
- name: Push Docker image (${{ env.tag }})
run: docker push ${{ env.tag }}
- name: Push "latest" tag
run: docker tag "$tag" ${latest=${{ env.registry }}/${{ env.image }}}
&& docker push "$latest"
if: ${{ matrix.distro == 'Alpine' }}