Skip to content

Merge pull request #1680 from pdtouch/tv4g1-issue1414-uo__unit #12

Merge pull request #1680 from pdtouch/tv4g1-issue1414-uo__unit

Merge pull request #1680 from pdtouch/tv4g1-issue1414-uo__unit #12

name: Build and Publish Docker image
on:
push:
branches:
- 4.x
- tv4g9-1572-expandDockerBuild
jobs:
push_to_registry:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
php-version:
- "8.0"
- "8.1"
- "8.2"
pgsql-version:
- "13"
drupal-version:
- "9.4.x-dev"
- "9.5.x-dev"
- "10.0.x-dev"
- "10.1.x-dev"
exclude:
- php-version: "8.2"
drupal-version: "9.4.x-dev"
- php-version: "8.2"
drupal-version: "9.5.x-dev"
- php-version: "8.0"
drupal-version: "10.0.x-dev"
- php-version: "8.0"
drupal-version: "10.1.x-dev"
name: Docker Build (drupal${{ matrix.drupal-version }})
steps:
- uses: actions/checkout@v3
name: Check out code
- uses: mr-smithers-excellent/docker-build-push@v5
name: Build & push Full matrix of Docker images
with:
image: tripalproject/tripaldocker
tags: drupal${{ matrix.drupal-version }}-php${{ matrix.php-version }}-pgsql${{ matrix.pgsql-version }}
dockerfile: tripaldocker/Dockerfile-php${{ matrix.php-version }}-pgsql${{ matrix.pgsql-version }}
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
buildArgs: "drupalversion=${{ matrix.drupal-version }}"
labels: 'tripal.branch=4.x,drupal.version.label="${{ matrix.label }}",php.version.label="${{ matrix.php-version }}", postgresql.version.label="${{ matrix.pgsql-version }}"'
- uses: mr-smithers-excellent/docker-build-push@v5
name: Build & push Full matrix of Docker images WITH NO CHADO
with:
image: tripalproject/tripaldocker
tags: drupal${{ matrix.drupal-version }}-php${{ matrix.php-version }}-pgsql${{ matrix.pgsql-version }}-noChado
dockerfile: tripaldocker/Dockerfile-php${{ matrix.php-version }}-pgsql${{ matrix.pgsql-version }}
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
buildArgs: "drupalversion=${{ matrix.drupal-version }},installchado=FALSE"
labels: 'tripal.branch=4.x,drupal.version.label="${{ matrix.label }}",php.version.label="${{ matrix.php-version }}", postgresql.version.label="${{ matrix.pgsql-version }}"'
- uses: mr-smithers-excellent/docker-build-push@v5
name: Build & push Docker image Drupal focused Docker images.
if: ${{ matrix.php-version == '8.1' && matrix.pgsql-version == '13' }}
with:
image: tripalproject/tripaldocker
tags: drupal${{ matrix.drupal-version }}
dockerfile: tripaldocker/Dockerfile-php${{ matrix.php-version }}-pgsql${{ matrix.pgsql-version }}
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
buildArgs: "drupalversion=${{ matrix.drupal-version }}"
labels: 'tripal.branch=4.x,drupal.version.label="${{ matrix.label }}",php.version.label="${{ matrix.php-version }}", postgresql.version.label="${{ matrix.pgsql-version }}"'
- uses: mr-smithers-excellent/docker-build-push@v5
name: Build latest using 10.0.x-dev, PHP 8.1, PgSQL 13
if: ${{ matrix.drupal-version == '10.0.x-dev' && matrix.php-version == '8.1' && matrix.pgsql-version == '13' }}
with:
image: tripalproject/tripaldocker
tags: latest
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
buildArgs: "drupalversion=${{ matrix.drupal-version }}"
labels: 'tripal.branch=4.x,drupal.version.label="${{ matrix.drupal-version }}",php.version.label="${{ matrix.php-version }}", postgresql.version.label="${{ matrix.pgsql-version }}"'