Skip to content

Bump actions/cache from 3 to 4 #21

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #21

Workflow file for this run

name: 'Docker: php-fpm'
env:
TAG: '1.1.0'
on:
push:
paths:
- 'dockers/php-fpm/**'
- .github/workflows/docker-php-fpm.yml
pull_request:
paths:
- 'dockers/php-fpm/**'
- .github/workflows/docker-php-fpm.yml
workflow_dispatch:
jobs:
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: '{{ defaultContext }}:dockers/php-fpm'
platforms: linux/amd64,linux/arm64
cache-from: ghcr.io/femiwiki/php-fpm:latest
load: false
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/php-fpm:latest
ghcr.io/femiwiki/php-fpm:${{ env.TAG }}