forked from jmhardison/docker-moodle
-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (36 loc) · 974 Bytes
/
php_80.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
name: build_and_deploy_80_php
on:
schedule:
- cron: '23 10 * * 6'
push:
branches: [
master,
dev
]
jobs:
build_apache_images:
runs-on: ubuntu-latest
strategy:
matrix:
moodle_version: [311,400,401,402]
database: ['all','mysqli','pgsql']
env:
VERSION: ${{ matrix.moodle_version }}
DB_TYPE: ${{ matrix.database }}
PHP_VERSION: "8.0"
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- 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/apache/Dockerfile'