File tree Expand file tree Collapse file tree 3 files changed +80
-0
lines changed
Expand file tree Collapse file tree 3 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ updates :
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " daily"
8+
9+ - package-ecosystem : " docker"
10+ directory : " /"
11+ schedule :
12+ interval : " daily"
Original file line number Diff line number Diff line change 1+ name : CI/CD
2+
3+ on : [push, workflow_dispatch]
4+
5+ env :
6+ DOCKER_BUILDKIT : 1
7+
8+ jobs :
9+ build :
10+ name : Build
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ version : ['7.4'] # , '8.0'
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v2
19+
20+ - name : Build
21+ run : |
22+ docker build \
23+ --tag kooldev/phpqa:${{ matrix.version }} \
24+ ${{ matrix.version }}
25+
26+ - name : Tests
27+ run : |
28+ docker run kooldev/phpqa:${{ matrix.version }} phpunit10 --version
29+ docker run kooldev/phpqa:${{ matrix.version }} phpunit --version
30+ docker run kooldev/phpqa:${{ matrix.version }} composer -V
31+ docker run kooldev/phpqa:${{ matrix.version }} phan --version
32+ docker run kooldev/phpqa:${{ matrix.version }} phpmd --version
33+ docker run kooldev/phpqa:${{ matrix.version }} phpcpd --version
34+ docker run kooldev/phpqa:${{ matrix.version }} local-php-security-checker -help
35+
36+ - name : Login to DockerHub
37+ uses : docker/login-action@v1
38+ if : github.ref == 'refs/heads/main' && github.repository == 'kool-dev/docker-phpqa'
39+ with :
40+ username : ${{ secrets.DOCKER_USERNAME }}
41+ password : ${{ secrets.DOCKER_PASSWORD }}
42+
43+ - name : Push to DockerHub
44+ if : github.ref == 'refs/heads/main' && github.repository == 'kool-dev/docker-phpqa'
45+ run : |
46+ docker push kooldev/phpqa:${{ matrix.version }}
Original file line number Diff line number Diff line change 1+ name : Sync Docker Hub Description
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - README.md
9+ - .github/workflows/docker-description.yml
10+
11+ jobs :
12+ docker-description :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Sync Docker Hub Description
18+ uses : peter-evans/dockerhub-description@v2
19+ env :
20+ DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
21+ DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_PASSWORD }}
22+ DOCKERHUB_REPOSITORY : kooldev/phpqa
You can’t perform that action at this time.
0 commit comments