-
Notifications
You must be signed in to change notification settings - Fork 3.9k
46 lines (40 loc) · 1.26 KB
/
prod-deploy-webhook.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
42
43
44
45
46
name: Deploy PROD WEBHOOK
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
publish_docker_image_webhook:
uses: ./.github/workflows/reusable-docker.yml
with:
environment: Production
package_name: novu/webhook
project_path: apps/webhook
test_port: 1341
health_check: true
local_tag: novu-webhook
env_tag: prod
aws-region: us-east-1
secrets: inherit
deploy_prod_webhook_eu:
needs:
- publish_docker_image_webhook
uses: ./.github/workflows/reusable-app-service-deploy.yml
secrets: inherit
with:
environment: Production
service_name: webhook
terraform_workspace: novu-prod-eu
docker_image: ${{ needs.publish_docker_image_webhook.outputs.docker_image_ee }}
deploy_prod_webhook_us:
needs:
- publish_docker_image_webhook
uses: ./.github/workflows/reusable-app-service-deploy.yml
secrets: inherit
with:
environment: Production
service_name: webhook
terraform_workspace: novu-prod
docker_image: ${{ needs.publish_docker_image_webhook.outputs.docker_image_ee }}