Browse Source

Add Docker build CI to pull requests

Eric Zhang 3 years ago
parent
commit
e00307ef03
1 changed files with 4 additions and 1 deletions
  1. 4 1
      .github/workflows/ci.yml

+ 4 - 1
.github/workflows/ci.yml

@@ -4,6 +4,9 @@ on:
   push:
     branches:
       - main
+  pull_request:
+    branches:
+      - main
 
 jobs:
   docker:
@@ -26,7 +29,7 @@ jobs:
         id: docker_build
         uses: docker/build-push-action@v2
         with:
-          push: true
+          push: ${{ github.event_name == 'push' }}
           build-args: GITHUB_SHA
           tags: ekzhang/rustpad:latest