Skip to content

build_and_deploy

build_and_deploy #111

name: build_and_deploy
on:
schedule:
- cron: '23 20 * * 6'
push:
branches: [
master,
dev
]
jobs:
build_alpine_fpm_images:
runs-on: ubuntu-latest
strategy:
matrix:
moodle_version: [39,311,400,401,402]
database: ['all','mysqli','pgsql']
env:
VERSION: ${{ matrix.moodle_version }}
DB_TYPE: ${{ matrix.database }}
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/fpm_alpine/Dockerfile'