Skip to content

Update readme with the new Docker path #4

Update readme with the new Docker path

Update readme with the new Docker path #4

Workflow file for this run

name: Deploy images to Docker Hub
on: [push, workflow_dispatch]
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 1
matrix: { type: [quality, nginx-fpm-prod, nginx-fpm-dev, fpm-prod, fpm-dev] }
steps:
- uses: actions/checkout@v4
- name: Build and export to Docker
uses: docker/build-push-action@v5
with: { load: true, context: "${{ matrix.type }}", tags: "thiagobraga/scaffold-php8:${{ matrix.type }}" }
- name: Test images
run: ./test.build.sh ${{ matrix.type }} && ./test.run.sh ${{ matrix.type }}
- name: Login to DockerHub
uses: docker/login-action@v3
if: github.ref == 'refs/heads/main' && github.repository == 'thiagobraga/scaffold-php8'
with: { username: "${{ secrets.DOCKERHUB_USERNAME }}", password: "${{ secrets.DOCKERHUB_PASSWORD }}" }
- name: Build and push
uses: docker/build-push-action@v5
if: github.ref == 'refs/heads/main' && github.repository == 'thiagobraga/scaffold-php8'
with: { push: true, context: "${{ matrix.type }}", tags: "thiagobraga/scaffold-php8:${{ matrix.type }}" }