mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 07:59:00 +03:00
feat(prebuilt): prebuild backend image for faster compilation (#1815)
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
This commit is contained in:
parent
436e49a5e7
commit
1ea647b147
7
.github/workflows/aws-preview.yml
vendored
7
.github/workflows/aws-preview.yml
vendored
@ -39,6 +39,11 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
@ -58,7 +63,7 @@ jobs:
|
||||
with:
|
||||
context: ./backend/
|
||||
push: true
|
||||
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}, ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest, ghcr.io/stangirard/quivr:latest
|
||||
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}, ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest, ghcr.io/stangirard/quivr:latest, stangirard/quivr-backend-prebuilt:latest, stangirard/quivr-backend-prebuilt:${{ env.IMAGE_TAG }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
|
@ -2,6 +2,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
frontend:
|
||||
image: quivr-frontend-prebuilt
|
||||
pull_policy: never
|
||||
build:
|
||||
context: frontend
|
||||
@ -22,8 +23,8 @@ services:
|
||||
|
||||
|
||||
backend-core:
|
||||
image: backend-base
|
||||
pull_policy: never
|
||||
image: stangirard/quivr-backend-prebuilt:latest
|
||||
pull_policy: if_not_present
|
||||
env_file:
|
||||
- .env
|
||||
build:
|
||||
@ -64,8 +65,8 @@ services:
|
||||
condition: service_healthy
|
||||
|
||||
worker:
|
||||
pull_policy: never
|
||||
image: backend-base
|
||||
pull_policy: if_not_present
|
||||
image: stangirard/quivr-backend-prebuilt:latest
|
||||
env_file:
|
||||
- .env
|
||||
build:
|
||||
@ -79,8 +80,8 @@ services:
|
||||
- db
|
||||
|
||||
beat:
|
||||
image: backend-base
|
||||
pull_policy: never
|
||||
image: stangirard/quivr-backend-prebuilt:latest
|
||||
pull_policy: if_not_present
|
||||
env_file:
|
||||
- .env
|
||||
build:
|
||||
@ -93,8 +94,8 @@ services:
|
||||
- redis
|
||||
|
||||
flower:
|
||||
image: backend-base
|
||||
pull_policy: never
|
||||
image: stangirard/quivr-backend-prebuilt:latest
|
||||
pull_policy: if_not_present
|
||||
env_file:
|
||||
- .env
|
||||
build:
|
||||
|
Loading…
Reference in New Issue
Block a user