ソースを参照

chore: docker build workflow

Timothy J. Baek 1 年間 前
コミット
0a3b99b94a
1 ファイル変更2 行追加0 行削除
  1. 2 0
      .github/workflows/docker-build.yaml

+ 2 - 0
.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