mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Fix khoj computer image name and only build it once for each arch
This commit is contained in:
4
.github/workflows/dockerize.yml
vendored
4
.github/workflows/dockerize.yml
vendored
@@ -122,13 +122,13 @@ jobs:
|
||||
|
||||
- name: 📦️️💻 Build and Push Computer for Khoj
|
||||
uses: docker/build-push-action@v4
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.khoj-computer == 'true'
|
||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.khoj-computer == 'true' && matrix.image == 'local'
|
||||
with:
|
||||
context: .
|
||||
file: computer.Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}-computer:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
|
||||
ghcr.io/computer:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
|
||||
cache-from: type=gha,scope=computer-${{ matrix.platform }}
|
||||
cache-to: type=gha,mode=max,scope=computer-${{ matrix.platform }}
|
||||
labels: |
|
||||
|
||||
Reference in New Issue
Block a user