Skip to content

Commit

Permalink
Merge pull request #23 from 8shaws/email
Browse files Browse the repository at this point in the history
feat: pushes the newly registered user email to queue to feed by an worker based on queue len
  • Loading branch information
shawakash authored Jul 28, 2024
2 parents fe3b80e + f0781cc commit 3f1b5a1
Show file tree
Hide file tree
Showing 21 changed files with 952 additions and 49 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
DATABASE_URL=postgres://postgres:password@localhost:5432/your_db_name
JWT_SECRET= use openssl rand -base64 32 to generate a secret
REDIS_URL=redis://localhost:6379
NO_WORKER_THREADS=4
SMTP_USERNAME=
SMTP_PASS=
REPLY_TO_MAIL=
31 changes: 31 additions & 0 deletions .github/workflows/notif_worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy xchange_notif_worker

on:
push:
branches:
- main
paths:
- "crates/notif_worker/**"
pull_request:
branches:
- main
paths:
- "crates/notif_worker/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "mv docker/notif_worker/Dockerfile ."

- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKERHUB_TOKEN}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --tag shawakash/xchange_notif_worker:${{ github.sha }}

- name: Docker Push
run: docker push shawakash/xchange_notif_worker:${{ github.sha }}
Loading

0 comments on commit 3f1b5a1

Please sign in to comment.