Skip to content

Commit

Permalink
Feat/deployment (#40)
Browse files Browse the repository at this point in the history
* chore(process-chunks): add retry logic for connecting to temporary queue

* chore(upload-notes): add endpoint for view authz

* chore: remove non-ready notes from view, fix created notes pagination

* feat(pdf-reader): added text stemming and lemmatisation to reduce token count

* fix(pdf-reader): cleaned up dead code from dockerfile

* chore(frontend): tweak colour schemes, intuitiveness of navbar

* fix(frontend): remove duplicate identifier

* chore(workflow): test build push and update value

---------

Co-authored-by: ztdevelops <yuezhengting@gmail.com>
Co-authored-by: neilscallywag <neil.sharma.2022@scis.smu.edu.sg>
  • Loading branch information
3 people authored Apr 28, 2024
1 parent e25165a commit 13cbed3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/fileprocessor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- feat/build-push
- chore/build-push
paths:
- 'backend/simple/fileprocessor/**'

Expand Down Expand Up @@ -35,5 +35,22 @@ jobs:
context: ./backend/simple/fileprocessor/
file: ./backend/simple/fileprocessor/Fileprocessor.Dockerfile
push: true
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ secrets.ECR_REPOSITORY }}:fileprocessor
platforms: linux/arm64
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ secrets.ECR_REPOSITORY }}:${{ github.sha }}
platforms: linux/arm64

- name: Clone deployment repository
uses: actions/checkout@v3
with:
repository: ${{ secrets.DEPLOYMENT_REPO }}
token: ${{ secrets.DEPLOYMENT_REPO_TOKEN }}
path: 'deployment-repo'

- name: Update Kubernetes deployment image
run: |
cd deployment-repo
sed -i 's|image: .*|image: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ secrets.ECR_REPOSITORY }}:${{ github.sha }}|' ./kubernetes/simple/fileprocessor/fileprocessor-deployment.yaml
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "Update image tag to ${{ github.sha }}"
git push
2 changes: 1 addition & 1 deletion backend/simple/fileprocessor/Fileprocessor.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.4.13 && \
chmod +x /bin/grpc_health_probe

COPY --from=builder /app/dist/server server
CMD ["./server"]
CMD ["./server"]

0 comments on commit 13cbed3

Please sign in to comment.