chore: docker build workflow

This commit is contained in:
Timothy J. Baek 2024-04-09 20:46:42 -07:00
parent 839efa4443
commit 0a3b99b94a
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,7 @@ jobs:
- name: Build and push Docker image with CUDA - name: Build and push Docker image with CUDA
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
if: github.ref == 'refs/heads/main'
with: with:
context: . context: .
push: true push: true
@ -75,6 +76,7 @@ jobs:
- name: Build and push Docker image with Ollama - name: Build and push Docker image with Ollama
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
if: github.ref == 'refs/heads/main'
with: with:
context: . context: .
push: true push: true