-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (38 loc) · 1.37 KB
/
update_apps.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
name: update_self_monitoring_apps
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
update_apps:
runs-on: ubuntu-latest
# Set the env for Azure managed identity federated credentials for OIDC
# https://github.com/marketplace/actions/azure-login#login-with-openid-connect-oidc-recommendeda
environment: dev
strategy:
matrix:
app_names: [
"serverless-dotnet6-self-monitoring",
"serverless-dotnet7-self-monitoring",
"serverless-java-springboot-self-monitoring",
"serverless-node-express-self-monitoring",
"serverless-php-laravel-self-monitoring",
"serverless-py-django-self-monitoring",
"serverless-tomcat-self-monitoring"
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Azure login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: ${{ matrix.app_names }}
startup-command: 'curl -s https://raw.githubusercontent.com/DataDog/datadog-aas-linux/${{ github.event.release.tag_name }}/datadog_wrapper | bash'