Skip to content

Merge branch 'feature/multithreaded-virus-scans' into develop #6

Merge branch 'feature/multithreaded-virus-scans' into develop

Merge branch 'feature/multithreaded-virus-scans' into develop #6

Workflow file for this run

name: Build Docker image
permissions:
contents: read
on:
push:
branches:
- "develop"
jobs:
build_push_develop:
runs-on: ubuntu-latest
steps:
## GitHub Action validation testing before starting workflow ##
- name: Ensure Docker token is present
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ env.DOCKERHUB_TOKEN == '' }}
run: |
echo "Dockerhub token is not defined in GitHub secrets, exiting run"
exit 1
- name: Ensure Docker username is present
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
if: ${{ env.DOCKERHUB_USERNAME == '' }}
run: |
echo "Dockerhub username is not defined in GitHub secrets, exiting run"
exit 1
## Begin workflow ##
# https://github.com/marketplace/actions/docker-setup-qemu
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/marketplace/actions/docker-login
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push 8.4 Test
uses: docker/build-push-action@v6
if: ${{ github.ref == 'refs/heads/develop' }}
with:
push: true
no-cache: true
tags: 10up/wordpress-ci:php-8.4-develop
build-args: |
PHP_IMG=php:8.4-bookworm
COMPOSER_VERSION=${{ env.COMPOSER_VERSION }}