-
-
Notifications
You must be signed in to change notification settings - Fork 108
41 lines (34 loc) · 1.21 KB
/
verify-build-auto-email-sender.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build auto email sender
on:
push:
paths:
- apps/auto-email-sender/**
- packages/**
- Dockerfile.auto
jobs:
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: Install dependencies
run: |
npm install -g yarn
yarn install
- name: Build Docker Image
run: |
docker buildx build . --platform linux/arm64 --file ./Dockerfile.auto \
--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 }}"