diff --git a/.assets/manifest.json b/.assets/manifest.json deleted file mode 100644 index e69de29..0000000 diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 29f7987..0620afb 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -8,12 +8,15 @@ on: types: [published] jobs: - build-amd64: + build-and-push: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 with: @@ -30,109 +33,28 @@ jobs: id: version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - name: Build and push AMD64 Docker image + - name: Build and push Docker image if: github.ref == 'refs/heads/master' && github.event_name == 'push' run: | - DOCKERFILE=app.dockerfile - IMAGE_NAME=perplexica - docker buildx build --platform linux/amd64 \ - --cache-from=type=registry,ref=itzcrazykns1337/${IMAGE_NAME}:amd64 \ + docker buildx create --use + DOCKERFILE=app.dockerfile; \ + IMAGE_NAME=perplexica; \ + docker buildx build --platform linux/amd64,linux/arm64 \ + --cache-from=type=registry,ref=itzcrazykns1337/${IMAGE_NAME}:main \ --cache-to=type=inline \ - --provenance false \ -f $DOCKERFILE \ - -t itzcrazykns1337/${IMAGE_NAME}:amd64 \ + -t itzcrazykns1337/${IMAGE_NAME}:main \ --push . - - name: Build and push AMD64 release Docker image + - name: Build and push release Docker image if: github.event_name == 'release' run: | - DOCKERFILE=app.dockerfile - IMAGE_NAME=perplexica - docker buildx build --platform linux/amd64 \ - --cache-from=type=registry,ref=itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }}-amd64 \ + docker buildx create --use + DOCKERFILE=app.dockerfile; \ + IMAGE_NAME=perplexica; \ + docker buildx build --platform linux/amd64,linux/arm64 \ + --cache-from=type=registry,ref=itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }} \ --cache-to=type=inline \ - --provenance false \ -f $DOCKERFILE \ - -t itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }}-amd64 \ + -t itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }} \ --push . - - build-arm64: - runs-on: ubuntu-24.04-arm - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Log in to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract version from release tag - if: github.event_name == 'release' - id: version - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - - name: Build and push ARM64 Docker image - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - run: | - DOCKERFILE=app.dockerfile - IMAGE_NAME=perplexica - docker buildx build --platform linux/arm64 \ - --cache-from=type=registry,ref=itzcrazykns1337/${IMAGE_NAME}:arm64 \ - --cache-to=type=inline \ - --provenance false \ - -f $DOCKERFILE \ - -t itzcrazykns1337/${IMAGE_NAME}:arm64 \ - --push . - - - name: Build and push ARM64 release Docker image - if: github.event_name == 'release' - run: | - DOCKERFILE=app.dockerfile - IMAGE_NAME=perplexica - docker buildx build --platform linux/arm64 \ - --cache-from=type=registry,ref=itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }}-arm64 \ - --cache-to=type=inline \ - --provenance false \ - -f $DOCKERFILE \ - -t itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }}-arm64 \ - --push . - - manifest: - needs: [build-amd64, build-arm64] - runs-on: ubuntu-latest - steps: - - name: Log in to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract version from release tag - if: github.event_name == 'release' - id: version - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - - name: Create and push multi-arch manifest for main - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - run: | - IMAGE_NAME=perplexica - docker manifest create itzcrazykns1337/${IMAGE_NAME}:main \ - --amend itzcrazykns1337/${IMAGE_NAME}:amd64 \ - --amend itzcrazykns1337/${IMAGE_NAME}:arm64 - docker manifest push itzcrazykns1337/${IMAGE_NAME}:main - - - name: Create and push multi-arch manifest for releases - if: github.event_name == 'release' - run: | - IMAGE_NAME=perplexica - docker manifest create itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }} \ - --amend itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }}-amd64 \ - --amend itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }}-arm64 - docker manifest push itzcrazykns1337/${IMAGE_NAME}:${{ env.RELEASE_VERSION }} diff --git a/.gitignore b/.gitignore index 9fb5e4c..c95173d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,5 +37,3 @@ Thumbs.db # Db db.sqlite /searxng - -certificates \ No newline at end of file diff --git a/README.md b/README.md index 5eb0713..6540c73 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@
- {item.content.slice(0, 100)}... -
++ {item.content.slice(0, 100)}... +
+Theme
- Measurement Units -
-- Ollama API Key (Can be left blank) -
- { - setConfig((prev) => ({ - ...prev!, - ollamaApiKey: e.target.value, - })); - }} - onSave={(value) => saveConfig('ollamaApiKey', value)} - /> -GROQ API Key @@ -894,63 +788,6 @@ const Page = () => { onSave={(value) => saveConfig('geminiApiKey', value)} />
- Deepseek API Key -
- { - setConfig((prev) => ({ - ...prev!, - deepseekApiKey: e.target.value, - })); - }} - onSave={(value) => saveConfig('deepseekApiKey', value)} - /> -- AI/ML API Key -
- { - setConfig((prev) => ({ - ...prev!, - aimlApiKey: e.target.value, - })); - }} - onSave={(value) => saveConfig('aimlApiKey', value)} - /> -- LM Studio API URL -
- { - setConfig((prev) => ({ - ...prev!, - lmStudioApiUrl: e.target.value, - })); - }} - onSave={(value) => saveConfig('lmStudioApiUrl', value)} - /> -