From 706b4842a28e2193e4a9011df69a34249bf3b468 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 27 Jul 2024 04:03:16 +0000 Subject: [PATCH 01/19] fix: upgrade tailwindcss from 3.3.3 to 3.4.4 Snyk has created this PR to upgrade tailwindcss from 3.3.3 to 3.4.4. See this package in npm: tailwindcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 910db7cd..bae35019 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -13,7 +13,7 @@ "autoprefixer": "^10.4.16", "postcss": "^8.4.31", "svelte": "^4.0.5", - "tailwindcss": "^3.3.3", + "tailwindcss": "^3.4.4", "vite": "^4.4.12" }, "dependencies": { From 2da9e8b4bc37588847fa8befbc2a35dade606c1c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 27 Jul 2024 04:03:27 +0000 Subject: [PATCH 02/19] fix: upgrade autoprefixer from 10.4.16 to 10.4.19 Snyk has created this PR to upgrade autoprefixer from 10.4.16 to 10.4.19. See this package in npm: autoprefixer See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 910db7cd..352e06c6 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@sveltejs/vite-plugin-svelte": "^2.4.2", - "autoprefixer": "^10.4.16", + "autoprefixer": "^10.4.19", "postcss": "^8.4.31", "svelte": "^4.0.5", "tailwindcss": "^3.3.3", From 4f71e26c4512877f3d11b252e5dc89094a4fd52a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 28 Jul 2024 03:05:56 +0000 Subject: [PATCH 03/19] fix: upgrade @sveltejs/vite-plugin-svelte from 2.4.6 to 2.5.3 Snyk has created this PR to upgrade @sveltejs/vite-plugin-svelte from 2.4.6 to 2.5.3. See this package in npm: @sveltejs/vite-plugin-svelte See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 53b3d4b7..06ee8122 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.4.2", + "@sveltejs/vite-plugin-svelte": "^2.5.3", "autoprefixer": "^10.4.19", "postcss": "^8.4.31", "svelte": "^4.0.5", From 9078683dcbf10d53aaba01256abf18fc9fcb8008 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 28 Jul 2024 03:06:00 +0000 Subject: [PATCH 04/19] fix: upgrade vite from 4.5.1 to 4.5.3 Snyk has created this PR to upgrade vite from 4.5.1 to 4.5.3. See this package in npm: vite See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 53b3d4b7..9394ebff 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -14,7 +14,7 @@ "postcss": "^8.4.31", "svelte": "^4.0.5", "tailwindcss": "^3.4.4", - "vite": "^4.4.12" + "vite": "^4.5.3" }, "dependencies": { "svelte-markdown": "^0.4.0" From 6ced28b7960cf8d06196a418b9aa1f031752261c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 29 Jul 2024 01:51:43 +0000 Subject: [PATCH 05/19] fix: upgrade svelte-markdown from 0.4.0 to 0.4.1 Snyk has created this PR to upgrade svelte-markdown from 0.4.0 to 0.4.1. See this package in npm: svelte-markdown See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 05e284a7..34e5625c 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -17,6 +17,6 @@ "vite": "^4.5.3" }, "dependencies": { - "svelte-markdown": "^0.4.0" + "svelte-markdown": "^0.4.1" } } From 82e102f48af0ea2385ed306b598fe6373966c0f1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 6 Aug 2024 04:02:58 +0000 Subject: [PATCH 06/19] fix: upgrade tailwindcss from 3.3.3 to 3.4.5 Snyk has created this PR to upgrade tailwindcss from 3.3.3 to 3.4.5. See this package in npm: tailwindcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 34e5625c..83dc1c88 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -13,7 +13,7 @@ "autoprefixer": "^10.4.19", "postcss": "^8.4.31", "svelte": "^4.0.5", - "tailwindcss": "^3.4.4", + "tailwindcss": "^3.4.5", "vite": "^4.5.3" }, "dependencies": { From 4e24f3bac090d9e3b5623b72a352530951aad671 Mon Sep 17 00:00:00 2001 From: abdulrahman305 Date: Tue, 6 Aug 2024 22:48:32 +0300 Subject: [PATCH 07/19] Create files --- .github/workflows/Genstack.yaml | 66 +++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/Genstack.yaml diff --git a/.github/workflows/Genstack.yaml b/.github/workflows/Genstack.yaml new file mode 100644 index 00000000..20efea26 --- /dev/null +++ b/.github/workflows/Genstack.yaml @@ -0,0 +1,66 @@ +name: Genstack +"on": + push: + branches: + - main + workflow_dispatch: {} +env: + ACR_RESOURCE_GROUP: kubeops_group + AZURE_CONTAINER_REGISTRY: acrworkflow1722973530004 + CLUSTER_NAME: kube + CLUSTER_RESOURCE_GROUP: kubeops_group + CONTAINER_NAME: image-workflow-1722973530004 + DEPLOYMENT_MANIFEST_PATH: | + ./front-end/package.json + ./front-end/package-lock.json + ./front-end/jsconfig.json +jobs: + buildImage: + permissions: + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 + name: Azure login + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + - name: Build and push image to ACR + run: az acr build --image ${{ env.CONTAINER_NAME }}:${{ github.sha }} --registry ${{ env.AZURE_CONTAINER_REGISTRY }} -g ${{ env.ACR_RESOURCE_GROUP }} -f ./docker-compose.yml ./ + deploy: + permissions: + actions: read + contents: read + id-token: write + runs-on: ubuntu-latest + needs: + - buildImage + steps: + - uses: actions/checkout@v3 + - uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 + name: Azure login + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + - uses: azure/use-kubelogin@v1 + name: Set up kubelogin for non-interactive login + with: + kubelogin-version: v0.0.25 + - uses: azure/aks-set-context@v3 + name: Get K8s context + with: + admin: "false" + cluster-name: ${{ env.CLUSTER_NAME }} + resource-group: ${{ env.CLUSTER_RESOURCE_GROUP }} + use-kubelogin: "true" + - uses: Azure/k8s-deploy@v4 + name: Deploys application + with: + action: deploy + images: ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} + manifests: ${{ env.DEPLOYMENT_MANIFEST_PATH }} + namespace: namespace-workflow-1722973530004 From 970bbd73b8b3817e9fa3d3d455f631b8624a0ba2 Mon Sep 17 00:00:00 2001 From: abdulrahman305 Date: Wed, 7 Aug 2024 09:37:27 +0300 Subject: [PATCH 08/19] Create files --- .dockerignore | 8 +--- .github/workflows/genstack.yaml | 65 +++++++++++++++++++++++++++++++++ Dockerfile | 12 ++++++ manifests/deployment.yaml | 24 ++++++++++++ manifests/service.yaml | 15 ++++++++ 5 files changed, 118 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/genstack.yaml create mode 100644 Dockerfile create mode 100644 manifests/deployment.yaml create mode 100644 manifests/service.yaml diff --git a/.dockerignore b/.dockerignore index 3466d315..843dec4f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,2 @@ -* -!*.py -!requirements.txt -!images/* -!front-end/* -front-end/node_modules/* +Dockerfile +charts/ diff --git a/.github/workflows/genstack.yaml b/.github/workflows/genstack.yaml new file mode 100644 index 00000000..ce65a69a --- /dev/null +++ b/.github/workflows/genstack.yaml @@ -0,0 +1,65 @@ +name: genstack +"on": + push: + branches: + - main + workflow_dispatch: {} +env: + ACR_RESOURCE_GROUP: kubeops_group + AZURE_CONTAINER_REGISTRY: acrworkflow1723012492625 + CLUSTER_NAME: kube + CLUSTER_RESOURCE_GROUP: kubeops_group + CONTAINER_NAME: image-workflow-1723012492625 + DEPLOYMENT_MANIFEST_PATH: | + manifests/deployment.yaml + manifests/service.yaml +jobs: + buildImage: + permissions: + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 + name: Azure login + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + - name: Build and push image to ACR + run: az acr build --image ${{ env.CONTAINER_NAME }}:${{ github.sha }} --registry ${{ env.AZURE_CONTAINER_REGISTRY }} -g ${{ env.ACR_RESOURCE_GROUP }} -f Dockerfile ./ + deploy: + permissions: + actions: read + contents: read + id-token: write + runs-on: ubuntu-latest + needs: + - buildImage + steps: + - uses: actions/checkout@v3 + - uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 + name: Azure login + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + - uses: azure/use-kubelogin@v1 + name: Set up kubelogin for non-interactive login + with: + kubelogin-version: v0.0.25 + - uses: azure/aks-set-context@v3 + name: Get K8s context + with: + admin: "false" + cluster-name: ${{ env.CLUSTER_NAME }} + resource-group: ${{ env.CLUSTER_RESOURCE_GROUP }} + use-kubelogin: "true" + - uses: Azure/k8s-deploy@v4 + name: Deploys application + with: + action: deploy + images: ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} + manifests: ${{ env.DEPLOYMENT_MANIFEST_PATH }} + namespace: aks-istio-system diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..16322aae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.11-slim +ENV PORT 8000 +EXPOSE 8000 +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +ENTRYPOINT ["python"] +CMD ["app.py"] \ No newline at end of file diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml new file mode 100644 index 00000000..6a90b5fe --- /dev/null +++ b/manifests/deployment.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: genstack + labels: + app: genstack + kubernetes.azure.com/generator: devhub + namespace: aks-istio-system +spec: + replicas: 1 + selector: + matchLabels: + app: genstack + template: + metadata: + labels: + app: genstack + spec: + containers: + - name: genstack + image: acrworkflow1723012492625.azurecr.io/image-workflow-1723012492625:latest + imagePullPolicy: Always + ports: + - containerPort: 8000 diff --git a/manifests/service.yaml b/manifests/service.yaml new file mode 100644 index 00000000..cdaf290a --- /dev/null +++ b/manifests/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: genstack + namespace: aks-istio-system + labels: + kubernetes.azure.com/generator: devhub +spec: + type: LoadBalancer + selector: + app: genstack + ports: + - protocol: TCP + port: 8000 + targetPort: 8000 \ No newline at end of file From 26ac7fc1223c7512f55bd820407cbe8fd2c7e8f1 Mon Sep 17 00:00:00 2001 From: abdulrahman305 Date: Wed, 7 Aug 2024 21:39:49 +0300 Subject: [PATCH 09/19] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..3f53646d --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) From 1573b05d578eaa2a2da0b6169c292b2e7925eafb Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 7 Aug 2024 21:31:06 +0000 Subject: [PATCH 10/19] fix: upgrade tailwindcss from 3.3.3 to 3.4.6 Snyk has created this PR to upgrade tailwindcss from 3.3.3 to 3.4.6. See this package in npm: tailwindcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 83dc1c88..da3f81a7 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -13,7 +13,7 @@ "autoprefixer": "^10.4.19", "postcss": "^8.4.31", "svelte": "^4.0.5", - "tailwindcss": "^3.4.5", + "tailwindcss": "^3.4.6", "vite": "^4.5.3" }, "dependencies": { From f39ddb95191711a4ecbaae767233ad00cfd93a27 Mon Sep 17 00:00:00 2001 From: abdulrahman305 Date: Sun, 11 Aug 2024 12:26:41 +0000 Subject: [PATCH 11/19] chore: Add .npmrc and package-lock.json files --- .npmrc | 1 + package-lock.json | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .npmrc create mode 100644 package-lock.json diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..6d567622 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://packages.us-west-2.codecatalyst.aws/npm/Sauditech/mygit/Repository/ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..731ed4c5 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "genai-stack", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} From fac2f5929879f396764b279f050cc01219c6f753 Mon Sep 17 00:00:00 2001 From: abdulrahman305 Date: Sun, 11 Aug 2024 13:13:52 +0000 Subject: [PATCH 12/19] chore: Add package-lock.json file --- manifests/graphrag | 1 + manifests/package-lock.json | 6 ++++++ 2 files changed, 7 insertions(+) create mode 160000 manifests/graphrag create mode 100644 manifests/package-lock.json diff --git a/manifests/graphrag b/manifests/graphrag new file mode 160000 index 00000000..073f650b --- /dev/null +++ b/manifests/graphrag @@ -0,0 +1 @@ +Subproject commit 073f650ba9f059bbc4d3c9558d880fa88836487f diff --git a/manifests/package-lock.json b/manifests/package-lock.json new file mode 100644 index 00000000..4c5228eb --- /dev/null +++ b/manifests/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "manifests", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} From 9adc99c5913444cb3b7549758f27d2bd84f19402 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:35:51 +0000 Subject: [PATCH 13/19] Bump torch from 2.0.1 to 2.2.0 in the pip group across 1 directory Bumps the pip group with 1 update in the / directory: [torch](https://github.com/pytorch/pytorch). Updates `torch` from 2.0.1 to 2.2.0 - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/compare/v2.0.1...v2.2.0) --- updated-dependencies: - dependency-name: torch dependency-type: direct:production dependency-group: pip ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ad0f6f90..4c89d04e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ sentence_transformers==2.2.2 Pillow fastapi PyPDF2 -torch==2.0.1 +torch==2.2.0 pydantic uvicorn sse-starlette From f79b3817c174e175311a860b8614ce86e0ca454b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 15 Aug 2024 18:52:19 +0000 Subject: [PATCH 14/19] fix: upgrade tailwindcss from 3.3.3 to 3.4.7 Snyk has created this PR to upgrade tailwindcss from 3.3.3 to 3.4.7. See this package in npm: tailwindcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index da3f81a7..f892e66d 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -13,7 +13,7 @@ "autoprefixer": "^10.4.19", "postcss": "^8.4.31", "svelte": "^4.0.5", - "tailwindcss": "^3.4.6", + "tailwindcss": "^3.4.7", "vite": "^4.5.3" }, "dependencies": { From 1d0f66cb353d4735fb881d25eb1e0ccd01c9c4bc Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 15 Aug 2024 18:52:24 +0000 Subject: [PATCH 15/19] fix: upgrade postcss from 8.4.31 to 8.4.40 Snyk has created this PR to upgrade postcss from 8.4.31 to 8.4.40. See this package in npm: postcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index da3f81a7..747c60c8 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@sveltejs/vite-plugin-svelte": "^2.5.3", "autoprefixer": "^10.4.19", - "postcss": "^8.4.31", + "postcss": "^8.4.40", "svelte": "^4.0.5", "tailwindcss": "^3.4.6", "vite": "^4.5.3" From 062e39d6d3a60eae98c4f547325285d2d499b937 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 27 Aug 2024 05:03:06 +0000 Subject: [PATCH 16/19] fix: upgrade postcss from 8.4.31 to 8.4.41 Snyk has created this PR to upgrade postcss from 8.4.31 to 8.4.41. See this package in npm: postcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 6b098033..b4bdcee7 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@sveltejs/vite-plugin-svelte": "^2.5.3", "autoprefixer": "^10.4.19", - "postcss": "^8.4.40", + "postcss": "^8.4.41", "svelte": "^4.0.5", "tailwindcss": "^3.4.7", "vite": "^4.5.3" From e888d2b21f5e18eb77078efb131f258e4b55c607 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 29 Aug 2024 00:08:12 +0000 Subject: [PATCH 17/19] fix: upgrade tailwindcss from 3.3.3 to 3.4.8 Snyk has created this PR to upgrade tailwindcss from 3.3.3 to 3.4.8. See this package in npm: tailwindcss See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index 6b098033..0c894312 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -13,7 +13,7 @@ "autoprefixer": "^10.4.19", "postcss": "^8.4.40", "svelte": "^4.0.5", - "tailwindcss": "^3.4.7", + "tailwindcss": "^3.4.8", "vite": "^4.5.3" }, "dependencies": { From a4efc914459a7d73c3dd4be5eb0177584ae118c1 Mon Sep 17 00:00:00 2001 From: abdulrahman305 Date: Wed, 18 Sep 2024 07:39:40 +0300 Subject: [PATCH 18/19] Create an auto-deploy file --- ...r-08802d17-3be0-4081-89af-8ab34c2110f5.yml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/genai-AutoDeployTrigger-08802d17-3be0-4081-89af-8ab34c2110f5.yml diff --git a/.github/workflows/genai-AutoDeployTrigger-08802d17-3be0-4081-89af-8ab34c2110f5.yml b/.github/workflows/genai-AutoDeployTrigger-08802d17-3be0-4081-89af-8ab34c2110f5.yml new file mode 100644 index 00000000..c7077b07 --- /dev/null +++ b/.github/workflows/genai-AutoDeployTrigger-08802d17-3be0-4081-89af-8ab34c2110f5.yml @@ -0,0 +1,48 @@ +name: Trigger auto deployment for genai + +# When this action will be executed +on: + # Automatically trigger it when detected changes in repo + push: + branches: + [ main ] + paths: + - '**' + - '.github/workflows/genai-AutoDeployTrigger-08802d17-3be0-4081-89af-8ab34c2110f5.yml' + + # Allow manual trigger + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + permissions: + id-token: write #This is required for requesting the OIDC JWT Token + contents: read #Required when GH token is used to authenticate with private repo + + steps: + - name: Checkout to the branch + uses: actions/checkout@v2 + + - name: Azure Login + uses: azure/login@v1 + with: + client-id: ${{ secrets.GENAI_AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.GENAI_AZURE_TENANT_ID }} + subscription-id: ${{ secrets.GENAI_AZURE_SUBSCRIPTION_ID }} + + - name: Build and push container image to registry + uses: azure/container-apps-deploy-action@v2 + with: + appSourcePath: ${{ github.workspace }} + _dockerfilePathKey_: _dockerfilePath_ + registryUrl: hub.docker.com + registryUsername: ${{ secrets.GENAI_REGISTRY_USERNAME }} + registryPassword: ${{ secrets.GENAI_REGISTRY_PASSWORD }} + containerAppName: genai + resourceGroup: kubeops_group + imageToBuild: hub.docker.com/genai:${{ github.sha }} + _buildArgumentsKey_: | + _buildArgumentsValues_ + + From 26941a175583ea690ae7406739550b679c386393 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 22 Sep 2024 04:26:23 +0000 Subject: [PATCH 19/19] fix: upgrade multiple dependencies with Snyk Snyk has created this PR to upgrade: - @sveltejs/vite-plugin-svelte from 2.4.6 to 2.5.3. See this package in npm: https://www.npmjs.com/package/@sveltejs/vite-plugin-svelte - postcss from 8.4.31 to 8.4.42. See this package in npm: https://www.npmjs.com/package/postcss - svelte-markdown from 0.4.0 to 0.4.1. See this package in npm: https://www.npmjs.com/package/svelte-markdown See this project in Snyk: https://app.snyk.io/org/abdulrahman305/project/44a48377-2dcd-44b2-9442-7896c450a120?utm_source=github&utm_medium=referral&page=upgrade-pr --- front-end/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/package.json b/front-end/package.json index cfca0557..c28e1b5b 100644 --- a/front-end/package.json +++ b/front-end/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@sveltejs/vite-plugin-svelte": "^2.5.3", "autoprefixer": "^10.4.19", - "postcss": "^8.4.41", + "postcss": "^8.4.42", "svelte": "^4.0.5", "tailwindcss": "^3.4.8", "vite": "^4.5.3"