forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.35 KB
/
dev-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
47
48
49
50
51
name: Deploy DEV 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:
push:
branches:
- next
- main
paths:
- 'package.json'
- 'pnpm-lock.yaml'
- 'apps/webhook/**'
- 'libs/dal/**'
- 'packages/shared/**'
env:
TF_WORKSPACE: novu-dev
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
test_webhook:
uses: ./.github/workflows/reusable-webhook-e2e.yml
secrets: inherit
publish_docker_image_webhook:
if: "!contains(github.event.head_commit.message, 'ci skip')"
needs: test_webhook
uses: ./.github/workflows/reusable-docker.yml
with:
environment: Development
package_name: novu-dev/webhook
project_path: apps/webhook
test_port: 1341
health_check: true
local_tag: novu-webhook
env_tag: dev
aws-region: eu-west-2
secrets: inherit
deploy_dev_webhook:
if: "!contains(github.event.head_commit.message, 'ci skip')"
needs: publish_docker_image_webhook
uses: ./.github/workflows/reusable-app-service-deploy.yml
secrets: inherit
with:
environment: Development
service_name: webhook
terraform_workspace: novu-dev
docker_image: ${{ needs.publish_docker_image_webhook.outputs.docker_image_ee }}