Setting the file. One moment.
Subchapter 23.2
references/cicd.mdMarkdown1 KBView on GitHub
Use this when the user wants to deploy a Datadog Apps project from GitHub Actions.
Use DataDog/apps-github-action to build and upload the app on pushes to the deployment branch. Keep app-directory aligned with the app’s path in the repository.
name: Continuous Deployment
on:
push:
branches:
- main
permissions:
contents: read
jobs:
deploy-app:
name: Deploy Datadog App
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
- name: Deploy
uses: DataDog/apps-github-action@v0.0.2
with:
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
datadog-app-key: ${{ secrets.DATADOG_APP_KEY }}
app-directory: .Store DATADOG_API_KEY and DATADOG_APP_KEY as encrypted secrets (opens in a new tab) in the repository or organization settings.
For non-US1 organizations, configure the Datadog site in vite.config.ts. The upload action reads app configuration during build, so keep CI and local configuration aligned.