forked from jmhardison/docker-moodle
-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (50 loc) · 1.38 KB
/
deploy-fpm.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: build_and_deploy
on:
schedule:
- cron: '23 10 * * 6'
push:
branches: [
master,
dev
]
jobs:
build_fpm_images:
runs-on: ubuntu-latest
strategy:
matrix:
moodle_version: [311,400,401,402,403]
php_version: ['7.4','8.0','8.1','8.2']
exclude:
- moodle_version: 311
php_version: '8.1'
- moodle_version: 311
php_version: '8.2'
- moodle_version: 400
php_version: 8.1
- moodle_version: 401
php_version: '8.2'
- moodle_version: 402
php_version: '7.4'
- moodle_version: 402
php_version: '8.2'
- moodle_version: 403
php_version: '7.4'
env:
VERSION: ${{ matrix.moodle_version }}
PHP_VERSION: "${{ matrix.php_version }}"
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Login to Docker Hub
if: github.ref != 'refs/heads/dev'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name : Build Docker Images
shell: bash
run: |
docker --version
ls -l ./.github
chmod +x ".github/build_docker.sh"
.github/build_docker.sh 'dockerfiles/fpm/Dockerfile'