docker.yml 759 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Docker
  2. on:
  3. push:
  4. branches:
  5. - "master"
  6. pull_request:
  7. paths:
  8. - "compose.yaml"
  9. - "Dockerfile"
  10. - "docker/**"
  11. # Allow running on demand using Github UI
  12. workflow_dispatch:
  13. schedule:
  14. - cron: "0 5 * * *"
  15. jobs:
  16. docker-compose-build:
  17. name: Compose build PHP ${{ matrix.php-version }}
  18. runs-on: ubuntu-latest
  19. strategy:
  20. matrix:
  21. include:
  22. - php-version: '7.4'
  23. - php-version: '8.0'
  24. - php-version: '8.1'
  25. - php-version: '8.2'
  26. - php-version: '8.3'
  27. steps:
  28. - name: Checkout repository
  29. uses: actions/checkout@v4
  30. - name: Docker Compose build
  31. run: docker compose build --no-cache --pull php-${{ matrix.php-version }}