Skip to content

Commit

Permalink
Create docker-build-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmistry2000 authored Dec 30, 2024
1 parent 47a89b3 commit 7496b2c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Build Check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build Dockerfiles
run: |
for dir in $(find . -name 'Dockerfile' -exec dirname {} \;); do
echo "Building Dockerfile in $dir"
docker build "$dir"
done

0 comments on commit 7496b2c

Please sign in to comment.