-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (42 loc) · 1.5 KB
/
dapr-deploy.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
name: Dapr Component Deploys
on: [push, workflow_dispatch]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: azure/k8s-set-context@v1
id: login
with:
kubeconfig: ${{ secrets.aks_daprtalk_kubeConfig }}
- uses: azure/k8s-create-secret@v1
with:
namespace: default
container-registry-url: daprtalks.azurecr.io
container-registry-username: $${{ secrets.acr_daprtalks_username }}
container-registry-password: ${{ secrets.acr_daprtalks_password }}
secret-name: daprtalkdockerauth
- uses: azure/k8s-create-secret@v1
with:
namespace: 'default'
secret-type: 'generic'
arguments: --from-literal=access-key=${{ secrets.AZURE_COSMOS_ACCESS_KEY }}
secret-name: azure-cosmos
- uses: azure/k8s-create-secret@v1
with:
namespace: 'default'
secret-type: 'generic'
arguments: --from-literal=account-sid=${{ secrets.TWILIO_ACCOUNT_SID }} --from-literal=auth-token=${{ secrets.TWILIO_AUTH_TOKEN }}
secret-name: twilio
- uses: azure/k8s-deploy@v1
with:
namespace: default
manifests: |
components/messagebus.yaml
components/statestore.yaml
components/notification.yaml
- uses: azure/k8s-deploy@v1
with:
namespace: default
manifests: |
k8s-deploy/ingress.yaml