Merge branch '4.x' into 4.x #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish Docker image | |
on: | |
push: | |
branches: | |
- 4.x | |
- tv4g0-issue1714-updateDockerBuildWorkflow | |
jobs: | |
push_to_registry: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
pgsql-version: | |
- "13" | |
drupal-version: | |
- "10.0.x-dev" | |
- "10.1.x-dev" | |
- "10.2.x-dev" | |
exclude: | |
- php-version: "8.3" | |
pgsql-version: "13" | |
drupal-version: "10.0.x-dev" | |
- php-version: "8.3" | |
pgsql-version: "13" | |
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@v6 | |
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@v6 | |
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@v6 | |
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@v6 | |
name: Build latest using 10.2.x-dev, PHP 8.3, PgSQL 13 | |
if: ${{ matrix.drupal-version == '10.2.x-dev' && matrix.php-version == '8.3' && 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 }}"' |