Skip to content

Commit

Permalink
Merge pull request #27 from DataDog/storms/automate-self-monitoring-u…
Browse files Browse the repository at this point in the history
…pdates

Automate self-monitoring updates
  • Loading branch information
jcstorms1 authored Jan 25, 2024
2 parents 4f1dc60 + 613d8e5 commit be40503
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
name: ${{ github.ref_name }}
files: |
datadog-aas-${{ github.ref_name }}.zip
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/update_apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: update_self_monitoring_apps

on:
release:
types: [prereleased]


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'




0 comments on commit be40503

Please sign in to comment.