From 0a3b99b94a496daab5b04cfb184e06c4f487186c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 9 Apr 2024 20:46:42 -0700 Subject: [PATCH] chore: docker build workflow --- .github/workflows/docker-build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index b3fa778a..7f043c24 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -66,6 +66,7 @@ jobs: - name: Build and push Docker image with CUDA uses: docker/build-push-action@v5 + if: github.ref == 'refs/heads/main' with: context: . push: true @@ -75,6 +76,7 @@ jobs: - name: Build and push Docker image with Ollama uses: docker/build-push-action@v5 + if: github.ref == 'refs/heads/main' with: context: . push: true