-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.26 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
schedule:
- cron: 0 6 * * 1,4
push:
branches:
- main
jobs:
changes:
runs-on: ubuntu-latest
outputs:
php: ${{ steps.filter.outputs.php }}
phpdoc: ${{ steps.filter.outputs.phpdoc }}
steps:
-
name: Checkout
uses: actions/checkout@v4
-
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
php:
- '.github/workflows/build_php.yml'
- 'php/config/**'
- 'php/Dockerfile.*'
phpdoc:
- 'php/*.md'
build-php-images:
needs: changes
if: ${{ needs.changes.outputs.php == 'true' }}
uses: ./.github/workflows/build_php.yml
secrets: inherit
with:
image: php
registry: adeliom
dockerhub-php-doc:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.phpdoc == 'true' }}
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Update repo description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: adeliom/php
readme-filepath: ./php/README.md