Skip to content

Commit

Permalink
chore(ci): Add docker check (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar authored Jul 29, 2024
1 parent cf6a125 commit 01a56e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Check

on:
push:
paths:
- '**Dockerfile'
pull_request:
paths:
- '**Dockerfile'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build Docker Image
run: |
for dir in app/*/ ; do
if [ -f "$dir/Dockerfile" ]; then
docker build -f "$dir/Dockerfile" "$dir"
fi
done
1 change: 1 addition & 0 deletions apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ COPY --from=builder /app/out/full/ .
COPY turbo.json turbo.json



RUN pnpm turbo build --filter=web...

FROM base AS runner
Expand Down

0 comments on commit 01a56e2

Please sign in to comment.