-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (34 loc) · 1.75 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
# Disabled in favor of
# https://github.com/DataDog/serverless-self-monitoring/blob/main/self_monitor/azure/launch.sh
name: update_self_monitoring_apps
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
update_apps:
runs-on: ubuntu-latest
permissions:
pull-requests: write
packages: write
# 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
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Azure login
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Update Azure Web Apps
uses: azure/cli@v2
with:
inlineScript: |
az webapp deploy --resource-group "serverless-aas-linux" --name "serverless-dotnet6-self-monitoring" --src-path ./datadog_wrapper --type=startup
az webapp deploy --resource-group "serverless-aas-linux" --name "serverless-java-springboot-self-monitoring" --src-path ./datadog_wrapper --type=startup
az webapp deploy --resource-group "serverless-aas-linux" --name "serverless-node-express-self-monitoring" --src-path ./datadog_wrapper --type=startup
az webapp deploy --resource-group "serverless-aas-linux" --name "serverless-php-laravel-self-monitoring" --src-path ./datadog_wrapper --type=startup
az webapp deploy --resource-group "serverless-aas-linux" --name "serverless-py-django-self-monitoring" --src-path ./datadog_wrapper --type=startup
az webapp deploy --resource-group "serverless-aas-linux" --name "serverless-tomcat-self-monitoring" --src-path ./datadog_wrapper --type=startup