name: Deploy Latest Containers
on:
  push:
    branches:
      - master

jobs:
  deploy-containers:
    name: Deploy Containers
    runs-on: ubuntu-latest
    strategy:
      matrix:
        image:
          - php-apache
          - nginx
          - fpm
          - fpm-dev
          - admin
          - migrate-database
          - update-frontend
          - consume-messages
          - mysql
          - mysql-demo
          - elasticsearch
    steps:
    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v1
    - name: Login to DockerHub
      uses: docker/login-action@v1
      with:
        username: zorgbort
        password: ${{ secrets.ZORGBORT_DOCKER_TOKEN }}
    - name: ${{ matrix.image }} to Docker Registry
      uses: docker/build-push-action@v2
      with:
        tags: |
            ilios/${{ matrix.image }}:latest
        build-args: ILIOS_VERSION=dev
        target: ${{ matrix.image }}
        push: true
name: Deploy Latest Containers
on:
  push:
    branches:
      - master

jobs:
  deploy-containers:
    name: Deploy Containers
    runs-on: ubuntu-latest
    strategy:
      matrix:
        image:
          - php-apache
          - nginx
          - fpm
          - fpm-dev
          - admin
          - migrate-database
          - update-frontend
          - consume-messages
          - mysql
          - mysql-demo
          - elasticsearch
    steps:
    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v1
    - name: Login to DockerHub
      uses: docker/login-action@v1
      with:
        username: zorgbort
        password: ${{ secrets.ZORGBORT_DOCKER_TOKEN }}
    - name: ${{ matrix.image }} to Docker Registry
      uses: docker/build-push-action@v2
      with:
        tags: |
            ilios/${{ matrix.image }}:latest
        build-args: ILIOS_VERSION=dev
        target: ${{ matrix.image }}
        platforms: linux/amd64,linux/arm64
        push: true
Add ARM builds to our docker builds
Add ARM builds to our docker builds

This will allow our containers to run natively on Apple Silicon.
