Skip to content

update email

update email #10

name: Build and push auto email sender
on:
push:
branches:
- main
paths:
- 'apps/auto-email-sender/**/*'
- 'packages/**/*'
- 'Dockerfile.auto'
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20.5.1
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Login to OCIR
uses: docker/login-action@v2
with:
registry: gru.ocir.io
username: ${{ secrets.OCI_REPOSITORY_USER }}
password: ${{ secrets.OCI_REPOSITORY_PASS }}
- name: Install dependencies
run: |
npm install -g yarn
yarn install
- name: Build Docker image
run: |
docker buildx build . --platform linux/arm64 --file ./Dockerfile.auto -t "gru.ocir.io/gricbxnlp2kb/auto-email-sender:latest" \
--push \
--build-arg SECRET_KEY="${{ secrets.SECRET_KEY }}" \
--build-arg RESEND_KEY="${{ secrets.RESEND_KEY }}" \
--build-arg SUPABASE_URL="${{ secrets.SUPABASE_URL }}" \
--build-arg SUPABASE_SERVICE_ROLE="${{ secrets.SUPABASE_SERVICE_ROLE }}" \
--build-arg MONGO_ADDRESS="${{ secrets.MONGO_ADDRESS }}" \
--build-arg MONGO_PASSWORD="${{ secrets.MONGO_PASSWORD }}" \
--build-arg MONGO_USERNAME="${{ secrets.MONGO_USERNAME }}" \
--build-arg RABBITMQ_ADDRESS="${{ secrets.RABBITMQ_ADDRESS }}"