Skip to content

chore: Update Dockerfile-php paths for opcache and error_reporting #11

chore: Update Dockerfile-php paths for opcache and error_reporting

chore: Update Dockerfile-php paths for opcache and error_reporting #11

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- master # Trigger on pushes to the main branch
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and push the image
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile-php
push: true
tags: muneer1997/demo_php:latest
# Optional: Build the Nginx image as well
- name: Build and Push Nginx Image
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile-nginx
push: true
tags: muneer1997/demo_nginx:latest